From: Ulrich Dangel Date: Fri, 2 Apr 2010 12:26:38 +0000 (+0200) Subject: Only ask questions if options.force is not set. [Closes: issue833] X-Git-Tag: v0.9.23~1 X-Git-Url: http://git.grml.org/?p=grml2usb.git;a=commitdiff_plain;h=7f9c07b41d2af167b77e013584e6cc64c90dd98f Only ask questions if options.force is not set. [Closes: issue833] --- diff --git a/grml2usb b/grml2usb index 479f590..7e91839 100755 --- a/grml2usb +++ b/grml2usb @@ -1858,7 +1858,7 @@ def handle_vfat(device): logging.critical("Execution failed: %s", error) sys.exit(1) - if not os.path.isdir(device) and not check_for_usbdevice(device): + if not os.path.isdir(device) and not check_for_usbdevice(device) and not option.force: print "Warning: the specified device %s does not look like a removable usb device." % device f = raw_input("Do you really want to continue? y/N ") if f == "y" or f == "Y":