From 79a48558c4e4edaa91b2d650cbed84a4985d8f01 Mon Sep 17 00:00:00 2001 From: Jack Wilson Date: Tue, 18 Sep 2018 11:36:41 -0400 Subject: [PATCH] Update check for passing --device & --partition (#213) This seems intended to prevent someone from passing both --device and --partition arguments on the cli.. but the way it's currently written if one were to pass --partition, the tool would fail due to "mutual exclusivity" despite NOT having passed the --device argument --- src/woeusb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/woeusb b/src/woeusb index 6429e07..d7bd555 100755 --- a/src/woeusb +++ b/src/woeusb @@ -605,7 +605,7 @@ process_commandline_parameters(){ "${FUNCNAME[0]}: Error: No creation method specified!" >&2 return 1 elif \ - [ "${enable_device}" == false ] \ + [ "${enable_device}" == true ] \ && [ "${enable_partition}" == true ]; then echo_with_color red "${FUNCNAME[0]}: Error: --device and --partition creation method are mutual-exclusive." >&2 return 1