Add missing 'return' in option processing.
This commit is contained in:
parent
05fc13bc1d
commit
8216282742
1 changed files with 1 additions and 0 deletions
|
|
@ -57,6 +57,7 @@ parser_getopts() {
|
||||||
return 1
|
return 1
|
||||||
elif [[ "$2" =~ [^[:alnum:]_] ]]; then
|
elif [[ "$2" =~ [^[:alnum:]_] ]]; then
|
||||||
echo "${0##*/}: only alphanumerics and _ allowed for global name (--global-name)" >&2
|
echo "${0##*/}: only alphanumerics and _ allowed for global name (--global-name)" >&2
|
||||||
|
return 1
|
||||||
else
|
else
|
||||||
CURRENT_SECTION="$2"
|
CURRENT_SECTION="$2"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue