1
0
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:
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
# into a new array.
_COMMAND_PARAMETERS=(${_COMMAND_ARGV[*]})
unset _COMMAND_PARAMETERS[0]
unset "_COMMAND_PARAMETERS[0]"
_debug printf \
"\${_CMD}: %s\n" \