1
0
mirror of https://github.com/slicer69/doas synced 2024-07-03 07:58:51 +00:00

Account correctly for the -h option

This commit is contained in:
Kimmo Suominen 2020-11-09 11:54:04 +02:00
parent b4b963a130
commit f807ff888d

4
vidoas
View File

@ -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