getopts fix

This commit is contained in:
Matthew Saunders Brown 2021-03-18 16:49:17 -07:00
parent 5f578978cd
commit 50dc67106d

View File

@ -51,6 +51,9 @@ while getopts "h" opt; do
\? ) \? )
echo "Invalid option: $OPTARG" 1>&2 echo "Invalid option: $OPTARG" 1>&2
exit;; exit;;
: )
echo "Invalid option: $OPTARG requires an argument" 1>&2
exit;;
esac esac
done done