Do not remove the chroot if the user backs out
authorCsillag Tamas <cstamas@digitus.itk.ppke.hu>
Thu, 7 Jun 2012 22:31:28 +0000 (00:31 +0200)
committercstamas <cstamas@rohan.(none)>
Thu, 7 Jun 2012 22:35:14 +0000 (00:35 +0200)
Set CLEAN_ARTIFACTS to false if the user aborts.

grml-live

index 9f2add8..75b1b6e 100755 (executable)
--- a/grml-live
+++ b/grml-live
@@ -463,6 +463,7 @@ if [ -z "$FORCE" ] ; then
    echo -n "Is this ok for you? [y/N] "
    read a
    if ! [ "$a" = 'y' -o "$a" = 'Y' ] ; then
+      CLEAN_ARTIFACTS=0
       bailout 1 "Exiting as requested."
    fi
    echo