Fix __check_unparsed_options() grep regular expression.

This commit is contained in:
Pedro Algarvio 2012-11-29 03:40:18 +00:00
parent 8e94671aaf
commit 0cdbc1f223

View file

@ -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