Do not bailout (incl. cleanup) but just exit if user wants to quit
authorMichael Prokop <mika@grml.org>
Thu, 7 Jun 2012 23:48:09 +0000 (01:48 +0200)
committerMichael Prokop <mika@grml.org>
Thu, 7 Jun 2012 23:49:52 +0000 (01:49 +0200)
There's no need to remove/unmount anything yet unless the
user wants to really run the specified configuration.

grml-live

index 75b1b6e..c443cd1 100755 (executable)
--- a/grml-live
+++ b/grml-live
@@ -464,7 +464,8 @@ if [ -z "$FORCE" ] ; then
    read a
    if ! [ "$a" = 'y' -o "$a" = 'Y' ] ; then
       CLEAN_ARTIFACTS=0
-      bailout 1 "Exiting as requested."
+      echo "Exiting as requested."
+      exit 0
    fi
    echo
 fi