simplify getopts loops in shell scripts

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2023-09-26 01:34:10 +01:00
parent 36b7f01a8a
commit 67f4919ffe
3 changed files with 15 additions and 35 deletions
+4 -7
View File
@@ -23,13 +23,10 @@ main()
while getopts r:b:m: option
do
case "${option}" in
r)
rom=${OPTARG} ;;
b)
board=${OPTARG} ;;
m)
modifygbe=true
new_mac=${OPTARG} ;;
r) rom=${OPTARG} ;;
b) board=${OPTARG} ;;
m) modifygbe=true
new_mac=${OPTARG} ;;
esac
done