mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-13 23:09:40 +02:00
scripts: fix indentation in switch/case blocks
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user