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