mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-17 10:10:25 +00:00
Fix unparsed options checking regex.
Sould only catch options, not arguments with dashes in them.
This commit is contained in:
parent
b8464781cf
commit
9387bf484d
1 changed files with 1 additions and 1 deletions
|
@ -303,7 +303,7 @@ __check_unparsed_options() {
|
|||
else
|
||||
grep='grep'
|
||||
fi
|
||||
unparsed_options=$( echo "$shellopts" | ${grep} -E '[-]+[[:alnum:]][[:blank:]]' )
|
||||
unparsed_options=$( echo "$shellopts" | ${grep} -E '(^|[[:space:]])[-]+[[:alnum:]]' )
|
||||
if [ "x$unparsed_options" != "x" ]; then
|
||||
usage
|
||||
echo
|
||||
|
|
Loading…
Add table
Reference in a new issue