mirror of
https://github.com/octoleo/hosts.git
synced 2024-11-22 04:45:11 +00:00
Quote argument to unset
.
ShellCheck SC2184: Quote arguments to unset so they're not glob expanded. https://github.com/koalaman/shellcheck/wiki/SC2184
This commit is contained in:
parent
404ee19742
commit
05ba7bdc03
2
hosts
2
hosts
@ -265,7 +265,7 @@ done
|
|||||||
# resulting slice is treated as a quoted string and doesn't easily get coaxed
|
# resulting slice is treated as a quoted string and doesn't easily get coaxed
|
||||||
# into a new array.
|
# into a new array.
|
||||||
_COMMAND_PARAMETERS=(${_COMMAND_ARGV[*]})
|
_COMMAND_PARAMETERS=(${_COMMAND_ARGV[*]})
|
||||||
unset _COMMAND_PARAMETERS[0]
|
unset "_COMMAND_PARAMETERS[0]"
|
||||||
|
|
||||||
_debug printf \
|
_debug printf \
|
||||||
"\${_CMD}: %s\n" \
|
"\${_CMD}: %s\n" \
|
||||||
|
Loading…
Reference in New Issue
Block a user