X-Git-Url: https://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=chroot-script;h=f20faf0a4aad247d6d15eb784498e50b24d23e4b;hb=00a837dfd48ecee0daece8bbff5ac4aefc195abe;hp=bb770a515841e34fd75154bbf85aef8f08eb47ce;hpb=0fda360ab5986be65e7ef7354ad92b9ead7e5d85;p=grml-debootstrap.git 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 } # }}}