scripts/image: cleanup leftover directories

This commit is contained in:
Lukas Rusak 2016-06-24 11:06:31 -07:00
parent 04620a8f2b
commit 5171e1cacf

View File

@ -372,6 +372,9 @@ fi
$SCRIPTS/mkimage
fi
# cleanup release dir
rm -rf $RELEASE_DIR
# create WeTek Play (Amlogic) ZIP update and auto-install packages if requested
if [ "$1" = "amlpkg" ]; then
echo "Creating Amlogic ZIP update package"
@ -532,7 +535,8 @@ fi
# create release tarball
tar cf $TARGET_IMG/${IMAGE_NAME}-$1.tar -C $TARGET ${IMAGE_NAME}-$1
# cleanup noobs dir
rm -rf $RELEASE_DIR
fi
# cleanup release dir
rm -rf $RELEASE_DIR
fi