Emacs: removed bashism from getopts snippet
parent
1ccf6f2fe8
commit
ea6e340c8b
|
@ -13,20 +13,17 @@ Options:
|
|||
EOF
|
||||
}
|
||||
|
||||
OPT_TEST=false
|
||||
opt_test=false
|
||||
while getopts ":ht" opt; do
|
||||
case \$opt in
|
||||
h)
|
||||
_printhelp "\$0"
|
||||
exit 1 ;;
|
||||
t)
|
||||
OPT_TEST=true ;;
|
||||
opt_test=true ;;
|
||||
?)
|
||||
_printhelp "\$0"
|
||||
exit 1 ;;
|
||||
:)
|
||||
_printhelp "\$0"
|
||||
exit 1 ;;
|
||||
esac
|
||||
done
|
||||
|
||||
|
|
Loading…
Reference in New Issue