Fixed tabb argument handling

This commit is contained in:
Alexis Jhon Gaspar 2024-07-08 15:52:41 +08:00
parent b20a42b7db
commit 5dac0577b5

View file

@ -37,7 +37,6 @@ main() {
done done
} }
while getopts ":e:d" flag; do
case $flag in case $flag in
-e ) -e )
automode=true automode=true
@ -48,10 +47,9 @@ while getopts ":e:d" flag; do
main main
;; ;;
esac esac
done
if [ $OPTIND -eq 1 ]; then if [ $OPTIND -eq 1 ]; then
automode=true automode=false
main main
fi fi
shift $((OPTIND-1)) shift $((OPTIND-1))