From: Michael Prokop Date: Fri, 4 Dec 2020 10:40:13 +0000 (+0100) Subject: Properly handle KEEP_SRC_LIST option when set to 'no' X-Git-Tag: v0.95~1^2 X-Git-Url: http://git.grml.org/?p=grml-debootstrap.git;a=commitdiff_plain;h=3f28b112fddeba2c9a420792507e1b3d1ca273a6 Properly handle KEEP_SRC_LIST option when set to 'no' If the configuration includes KEEP_SRC_LIST='no', then it behaves as if it's set to 'yes', as we were just checking whether it's set or not. Closes: grml/grml-debootstrap#160 --- diff --git a/chroot-script b/chroot-script index a5f92c4..0d95d67 100755 --- a/chroot-script +++ b/chroot-script @@ -75,8 +75,8 @@ askpass() { # define chroot mirror {{{ chrootmirror() { - if [ -n "$KEEP_SRC_LIST" ] ; then - echo "KEEP_SRC_LIST has been set, skipping chrootmirror stage." + if [ "$KEEP_SRC_LIST" = "yes" ] ; then + echo "KEEP_SRC_LIST has been enabled, skipping chrootmirror stage." return fi @@ -129,8 +129,8 @@ chrootmirror() { # remove local chroot mirror {{{ remove_chrootmirror() { - if [ -n "$KEEP_SRC_LIST" ] ; then - echo "KEEP_SRC_LIST has been set, skipping remove_chrootmirror stage." + if [ "$KEEP_SRC_LIST" = "yes" ] ; then + echo "KEEP_SRC_LIST has been enabled, skipping remove_chrootmirror stage." return fi