mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-17 02:00:22 +00:00
Fix __check_unparsed_options()
grep
regular expression.
This commit is contained in:
parent
8e94671aaf
commit
0cdbc1f223
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ shift $(($OPTIND-1))
|
|||
|
||||
__check_unparsed_options() {
|
||||
shellopts="$1"
|
||||
unparsed_options=$( echo "$shellopts" | grep -e '[\-|\-\-][a-z]' )
|
||||
unparsed_options=$( echo "$shellopts" | grep -E '[-]+[[:alnum:]]' )
|
||||
if [ "x$unparsed_options" != "x" ]; then
|
||||
usage
|
||||
echo
|
||||
|
|
Loading…
Add table
Reference in a new issue