getopts fix
This commit is contained in:
parent
5f578978cd
commit
50dc67106d
|
@ -51,6 +51,9 @@ while getopts "h" opt; do
|
|||
\? )
|
||||
echo "Invalid option: $OPTARG" 1>&2
|
||||
exit;;
|
||||
: )
|
||||
echo "Invalid option: $OPTARG requires an argument" 1>&2
|
||||
exit;;
|
||||
esac
|
||||
done
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user