mirror of
https://github.com/octoleo/hosts.git
synced 2024-11-21 20:35:10 +00:00
Assign command parameters as quoted array.
Satisfies Shellcheck SC2206 https://github.com/koalaman/shellcheck/wiki/SC2206
This commit is contained in:
parent
fe48de86f1
commit
850f210a4f
2
hosts
2
hosts
@ -212,7 +212,7 @@ done
|
||||
# `_COMMAND_PARAMETERS=("${_COMMAND_ARGV[@]:1}")`) because under bash 3.2 the
|
||||
# resulting slice is treated as a quoted string and doesn't easily get coaxed
|
||||
# into a new array.
|
||||
_COMMAND_PARAMETERS=(${_COMMAND_ARGV[*]})
|
||||
_COMMAND_PARAMETERS=("${_COMMAND_ARGV[@]}")
|
||||
unset "_COMMAND_PARAMETERS[0]"
|
||||
|
||||
_debug printf \
|
||||
|
Loading…
Reference in New Issue
Block a user