diff --git a/build/scripts/cleanup.sh b/build/scripts/cleanup.sh index 42b6d32..978951a 100755 --- a/build/scripts/cleanup.sh +++ b/build/scripts/cleanup.sh @@ -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 @@ -14,4 +14,4 @@ apt-get clean rm -rf /build rm -rf /tmp/* /var/tmp/* rm -rf /var/lib/apt/lists/* -rm -f /etc/dpkg/dpkg.cfg.d/02apt-speedup +rm -f /etc/dpkg/dpkg.cfg.d/02apt-speedup \ No newline at end of file