From f807ff888d0383b5437f9857318261c135612cd6 Mon Sep 17 00:00:00 2001 From: Kimmo Suominen Date: Mon, 9 Nov 2020 11:54:04 +0200 Subject: [PATCH] Account correctly for the -h option --- vidoas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vidoas b/vidoas index 3031b63..3d95278 100755 --- a/vidoas +++ b/vidoas @@ -102,11 +102,11 @@ EOF noop=0 -while getopts n opt +while getopts hn opt do case "${opt}" in - n) noop=$((${noop} + 1));; h) usage; exit 0;; + n) noop=$((${noop} + 1));; *) usage 1>&2; exit 1;; esac done