[rt46602] Clean up getopts usage

Ensure case clauses are in sync with the string passed to getopts.
Remove catch-all clauses as they will never be evaluated.
This commit is contained in:
Michał Kępień
2018-01-26 13:05:02 +01:00
committed by Stephen Morris
parent fe51c34df3
commit 0dcee1cad3
4 changed files with 1 additions and 5 deletions

View File

@@ -29,7 +29,6 @@ keepfile=0
while getopts "n" flag; do
case $flag in
n) keepfile=1 ;;
*) exit 1 ;;
esac
done