Skip to content

Commit

Permalink
src/woeusb: proc_cmdline_params: Add error condition check of --tgt-f…
Browse files Browse the repository at this point in the history
…s --partition collision

Signed-off-by: 林博仁 <[email protected]>
  • Loading branch information
brlin-tw committed Nov 1, 2017
1 parent 312b9e3 commit 3766f38
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/woeusb
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,14 @@ process_commandline_parameters(){
return 1
fi

## --target-filesystem option is no use with --partition creation method
if \
[ "${enable_target_filesystem}" == Y ] \
&& [ "${enable_partition}" == Y ]; then
echo_with_color red "${FUNCNAME[0]}: Error: --target-filesystem option only can be used with --device creation method"
return 1
fi

if [ "${verbose}" = "1" ] && [ "${enable_debug}" != "Y" ]; then
trap 'trap_return "${FUNCNAME[0]}"' RETURN

Expand Down

0 comments on commit 3766f38

Please sign in to comment.