2
Man switch case
is not working properly:
while getopts "hvo:umsf" OPTION
do
case $OPTION in
i) instalarSniper
;;
h) help
;;
s) simular
;;
d) adicionais
;;
?) echo "Parametros incorretos, digite -h para ajuda"
;;
esac
done
More specifically, my parameters -h
and -s
are working, but if I try -i
or -d
, it goes to the case of incorrect parameters.
Someone would know to tell me what’s wrong?