diff --git a/scripts/image b/scripts/image index 9ccb8fe1f8..e10776ae91 100755 --- a/scripts/image +++ b/scripts/image @@ -453,6 +453,9 @@ fi popd > /dev/null + # cleanup release dir + rm -rf $RELEASE_DIR + elif [ "$1" = "noobs" ]; then RELEASE_DIR="$TARGET_IMG/${IMAGE_NAME}-$1"