X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=chroot-script;h=f20faf0a4aad247d6d15eb784498e50b24d23e4b;hp=bb770a515841e34fd75154bbf85aef8f08eb47ce;hb=8463f68fd13aa54a76d31f3883d7c38d5adfb8cf;hpb=0fda360ab5986be65e7ef7354ad92b9ead7e5d85 diff --git a/chroot-script b/chroot-script index bb770a5..f20faf0 100755 --- a/chroot-script +++ b/chroot-script @@ -131,7 +131,12 @@ EOF # remove now useless apt cache {{{ remove_apt_cache() { - apt-get clean + if [ "$RM_APTCACHE" = 'yes' ] ; then + echo "Cleaning apt cache." + apt-get clean + else + echo "Not cleaning apt cache as \$RM_APTCACHE is unset." + fi } # }}}