Skip to content

Commit

Permalink
data/make_man.sh: fixed missing getopts shift
Browse files Browse the repository at this point in the history
removed accidentally by 7c0bd41

Now it is shifted after the while-loop (not `shift` in every while
iteration) - should behave the same but this is canonical according to
getopts man (w/o needless '$' before OPTIND).
  • Loading branch information
MartinPulec committed Nov 15, 2023
1 parent 01e525b commit f35b046
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions data/make_man.sh
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ while getopts dhkn name; do
;;
esac
done
shift $((OPTIND - 1))

if [ $# -eq 0 ]; then
usage
Expand Down

0 comments on commit f35b046

Please sign in to comment.