From 7f9c07b41d2af167b77e013584e6cc64c90dd98f Mon Sep 17 00:00:00 2001 From: Ulrich Dangel Date: Fri, 2 Apr 2010 14:26:38 +0200 Subject: [PATCH] Only ask questions if options.force is not set. [Closes: issue833] --- grml2usb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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": -- 2.1.4