1
0
mirror of https://github.com/octoleo/hosts.git synced 2024-06-02 06:20:52 +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:
William Melody 2017-03-01 19:59:01 -08:00
parent 404ee19742
commit 05ba7bdc03

2
hosts
View File

@ -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" \