Fixed tabb argument handling
This commit is contained in:
parent
b20a42b7db
commit
5dac0577b5
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue