Skip to content

Commit

Permalink
Update check for passing --device & --partition (#213)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Jack Wilson authored and brlin-tw committed Sep 18, 2018
1 parent 7b0c47f commit 79a4855
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/woeusb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 79a4855

Please sign in to comment.