summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-07-29 07:24:18 +0100
committerLeah Rowe <leah@libreboot.org>2023-07-29 07:24:18 +0100
commit8f1d3ad19f8f63bd9d9a4b0f7c0a42c7ce7fae8b (patch)
treeb95f2c14089d909194f97844a0322ccfda2e39b5
parent748e0972287bcb300bf11ef86d3ccb45bce59146 (diff)
scripts: fix indentation in switch/case blocks
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rwxr-xr-xgitclone8
-rwxr-xr-xresources/scripts/build/boot/roms_helper8
-rwxr-xr-xresources/scripts/update/blobs/inject21
3 files changed, 20 insertions, 17 deletions
diff --git a/gitclone b/gitclone
index 70b4e7f7..bd49a04a 100755
--- a/gitclone
+++ b/gitclone
@@ -35,16 +35,16 @@ read_config()
while read -r line ; do
set ${line} >/dev/null 2>&1
case ${line} in
- rev:*)
+ rev:*)
revision=${2}
;;
- loc:*)
+ loc:*)
location=${2}
;;
- url:*)
+ url:*)
url=${2}
;;
- bkup_url:*)
+ bkup_url:*)
bkup_url=${2}
;;
esac
diff --git a/resources/scripts/build/boot/roms_helper b/resources/scripts/build/boot/roms_helper
index 8e1655a5..32a6e537 100755
--- a/resources/scripts/build/boot/roms_helper
+++ b/resources/scripts/build/boot/roms_helper
@@ -40,16 +40,16 @@ payloads=""
keyboard_layouts=""
while [ $# -gt 0 ]; do
case ${1} in
- -d)
+ -d)
displaymodes="${displaymodes}${2}"
shift ;;
- -p)
+ -p)
payloads="${payloads}${2}"
shift ;;
- -k)
+ -k)
keyboard_layouts="${keyboard_layouts}${2}"
shift ;;
- *)
+ *)
board=${1} ;;
esac
shift
diff --git a/resources/scripts/update/blobs/inject b/resources/scripts/update/blobs/inject
index 891cb198..bc8a9a4d 100755
--- a/resources/scripts/update/blobs/inject
+++ b/resources/scripts/update/blobs/inject
@@ -50,15 +50,18 @@ main()
while getopts r:b:m: option
do
- case "${option}"
- in
- r)rom=${OPTARG};;
- b)board=${OPTARG};;
+ case "${option}" in
+ r)
+ rom=${OPTARG}
+ ;;
+ b)
+ board=${OPTARG}
+ ;;
m)
modifygbe=true
new_mac=${OPTARG}
;;
- esac
+ esac
done
check_board
@@ -111,17 +114,17 @@ detect_board()
path=${1}
filename=$(basename ${path})
case ${filename} in
- grub_*)
+ grub_*)
board=$(echo "${filename}" | cut -d '_' -f2-3)
;;
- seabios_withgrub_*)
+ seabios_withgrub_*)
board=$(echo "${filename}" | cut -d '_' -f3-4)
;;
- *.tar.xz)
+ *.tar.xz)
_stripped_prefix=${filename#*_}
board="${_stripped_prefix%.tar.xz}"
;;
- *)
+ *)
return 1
esac