X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=chroot-script;h=f20faf0a4aad247d6d15eb784498e50b24d23e4b;hb=f5daf2d5d3f48c97070786591b263fc5d12fefcc;hp=bb770a515841e34fd75154bbf85aef8f08eb47ce;hpb=a1337d3aeb7bc042fb40fb90315264867661d3fc;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 } # }}}