summarylogtreecommitdiffstats
path: root/hqx.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hqx.sh')
-rwxr-xr-xhqx.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/hqx.sh b/hqx.sh
index 1427befb2e7d..18baa9d8ad01 100755
--- a/hqx.sh
+++ b/hqx.sh
@@ -9,10 +9,11 @@ scale=4
while getopts ":s:" option; do
case $option in
s)
+ scale="$OPTARG"
if [ "$scale" -ne 2 ] && [ "$scale" -ne 3 ] && [ "$scale" -ne 4 ]; then
echo "Only scale factors of 2, 3 and 4 are supported"
+ exit 1
fi
- scale="$OPTARG"
;;
\?)
echo "Invalid option: -$OPTARG" >&2