diff options
author | Leah Rowe <leah@libreboot.org> | 2023-09-26 01:34:10 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2023-09-26 01:35:15 +0100 |
commit | 67f4919ffefdc2a95af95e86cc01b998df292b4b (patch) | |
tree | b30b50166bdea39c27948120426f0795ae7e7f98 /script/update | |
parent | 36b7f01a8a1bf2d31f3163d64a96aa49a98d0d62 (diff) |
simplify getopts loops in shell scripts
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script/update')
-rwxr-xr-x | script/update/blobs/inject | 11 |
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 |