From 67f4919ffefdc2a95af95e86cc01b998df292b4b Mon Sep 17 00:00:00 2001
From: Leah Rowe <leah@libreboot.org>
Date: Tue, 26 Sep 2023 01:34:10 +0100
Subject: simplify getopts loops in shell scripts

Signed-off-by: Leah Rowe <leah@libreboot.org>
---
 script/update/blobs/inject | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

(limited to 'script/update/blobs')

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
 
-- 
cgit v1.2.1