diff --git a/build/tools/extract_utils.sh b/build/tools/extract_utils.sh index 87d967bb..77a28f21 100644 --- a/build/tools/extract_utils.sh +++ b/build/tools/extract_utils.sh @@ -806,7 +806,9 @@ function extract() { echo "Cleaning output directory ($OUTPUT_ROOT).." rm -rf "${OUTPUT_TMP:?}" mkdir -p "${OUTPUT_TMP:?}" - mv "${OUTPUT_ROOT:?}/"* "${OUTPUT_TMP:?}/" + if [ -d "$OUTPUT_ROOT" ]; then + mv "${OUTPUT_ROOT:?}/"* "${OUTPUT_TMP:?}/" + fi VENDOR_STATE=1 fi