Skip to content

Commit

Permalink
src/winusb: process_commandline_parameters: Inhibit SC2034 due to She…
Browse files Browse the repository at this point in the history
…llCheck's limitation

Ref: https://github.com/koalaman/shellcheck/wiki/SC2034
Signed-off-by: 林博仁 <[email protected]>
  • Loading branch information
brlin-tw committed Jun 5, 2017
1 parent 0d034ef commit 7e9ebe2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/winusb
Original file line number Diff line number Diff line change
Expand Up @@ -889,6 +889,9 @@ process_commandline_parameters(){
target_media_ref="${parameters[0]}"
;;
'--format')
# Limitation of ShellCheck to detect usage of indirection variables
# https://github.com/koalaman/shellcheck/wiki/SC2034
# shellcheck disable=SC2034
install_mode_ref='device'
shift_array parameters
if [ "${#parameters[@]}" -lt 2 ]; then
Expand Down

0 comments on commit 7e9ebe2

Please sign in to comment.