Merge pull request #486 from lrusak/image

scripts/image: cleanup leftover directories
This commit is contained in:
Christian Hewitt 2016-06-25 09:14:08 +04:00 committed by GitHub
commit d21a7f52ad

View File

@ -380,6 +380,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"
@ -540,7 +543,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