From 50dc67106dd372698343a655368a847536943ce3 Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Thu, 18 Mar 2021 16:49:17 -0700 Subject: [PATCH] getopts fix --- bin/vmail-aliases-del.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/vmail-aliases-del.sh b/bin/vmail-aliases-del.sh index b83245f..c506282 100755 --- a/bin/vmail-aliases-del.sh +++ b/bin/vmail-aliases-del.sh @@ -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