Skip to content

Commit

Permalink
core: proc_cmdline_params: Fix-up broken --tgt-fs parsing
Browse files Browse the repository at this point in the history
`tr` requires input from the standard input device, instead of from
commandline argument.  This patch fixes the command by using the "Here
Strings" redirection feature.

Fixes #210.

Reported-by: mishka81 <https://github.com/mishka81>
Refer-to: --tgt-fs option does not work · Issue #210 · slacka/WoeUSB
<https://github.com/slacka/WoeUSB/issues/210>
Blame: WoeUSB/woeusb at 2c7c039 ·
slacka/WoeUSB
<https://github.com/slacka/WoeUSB/blob/2c7c03954012eb129bcf473d6786643482a61da9/src/woeusb#L583-L586>
Signed-off-by: 林博仁(Buo-ren Lin) <[email protected]>
  • Loading branch information
brlin-tw committed Sep 15, 2018
1 parent 8e45fba commit aea4f91
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 @@ -583,7 +583,7 @@ process_commandline_parameters(){
tr \
'[:lower:]' \
'[:upper:]' \
"${parameters[0]}"
<<< "${parameters[0]}"
)"
;;
*)
Expand Down

0 comments on commit aea4f91

Please sign in to comment.