mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 22:12:40 +02:00
simplify getopts loops in shell scripts
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user