Protect NOPROMPT (Closes: #610941).
authorMarco Amadori <amadorim@vdavda.com>
Mon, 24 Jan 2011 09:21:54 +0000 (10:21 +0100)
committerDaniel Baumann <daniel@debian.org>
Wed, 9 Mar 2011 16:59:21 +0000 (17:59 +0100)
debian/live-boot.init

index 2974c23..f0982a8 100644 (file)
@@ -136,7 +136,7 @@ do_stop ()
        fi
 
        prompt=1
-       if [ ${NOPROMPT} = "Yes" ]
+       if [ "${NOPROMPT}" = "Yes" ]
        then
                prompt=
        fi
@@ -173,7 +173,7 @@ do_stop ()
                        # "ejected" state even after reboot
                        MESSAGE="Please remove the USB flash drive"
 
-                       if [ ${NOPROMPT} = "usb" ]
+                       if [ "${NOPROMPT}" = "usb" ]
                        then
                                prompt=
                        fi