summaryrefslogtreecommitdiff
path: root/script/update
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-09-26 01:34:10 +0100
committerLeah Rowe <leah@libreboot.org>2023-09-26 01:35:15 +0100
commit67f4919ffefdc2a95af95e86cc01b998df292b4b (patch)
treeb30b50166bdea39c27948120426f0795ae7e7f98 /script/update
parent36b7f01a8a1bf2d31f3163d64a96aa49a98d0d62 (diff)
simplify getopts loops in shell scripts
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script/update')
-rwxr-xr-xscript/update/blobs/inject11
1 files changed, 4 insertions, 7 deletions
diff --git a/script/update/blobs/inject b/script/update/blobs/inject
index aae7b0cc..c2f9ead6 100755
--- a/script/update/blobs/inject
+++ b/script/update/blobs/inject
@@ -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