mirror of
https://github.com/octoleo/hosts.git
synced 2024-11-10 15:20:58 +00:00
Handle blank arguments string when assigning to $_RAW_OPTIONS
.
When `$*` is specified with quotes and braces as `"${*}"`, a blank argument array results in an error in older versions of bash. Remove the braces to avoid this error.
This commit is contained in:
parent
187222614a
commit
149a51662e
2
hosts
2
hosts
@ -128,7 +128,7 @@ die() {
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
# Get raw options for any commands that expect them.
|
# Get raw options for any commands that expect them.
|
||||||
_RAW_OPTIONS="${*}"
|
_RAW_OPTIONS="${*:-}"
|
||||||
|
|
||||||
# Steps:
|
# Steps:
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user