Check whether there actually are temporary packages

This commit is contained in:
2016-04-20 22:23:30 +01:00
parent eb1f879415
commit ceb6b829df

View File

@@ -4,7 +4,7 @@ source /build/config
set -x
## Remove temporary packages for minimal builds
if [ $MODE == "minimal" ]; then
if [ $MODE == "minimal" ] && [ -f /build/temporary ]; then
cat /build/temporary
apt_remove $(cat /build/temporary)
fi