Emacs: removed bashism from getopts snippet

master
Pierre Neidhardt 2014-02-10 15:05:10 +01:00
parent 1ccf6f2fe8
commit ea6e340c8b
1 changed files with 2 additions and 5 deletions

View File

@ -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