scripts: fix indentation in switch/case blocks
Signed-off-by: Leah Rowe <leah@libreboot.org>btrfsvols
parent
748e097228
commit
8f1d3ad19f
8
gitclone
8
gitclone
|
@ -35,16 +35,16 @@ read_config()
|
||||||
while read -r line ; do
|
while read -r line ; do
|
||||||
set ${line} >/dev/null 2>&1
|
set ${line} >/dev/null 2>&1
|
||||||
case ${line} in
|
case ${line} in
|
||||||
rev:*)
|
rev:*)
|
||||||
revision=${2}
|
revision=${2}
|
||||||
;;
|
;;
|
||||||
loc:*)
|
loc:*)
|
||||||
location=${2}
|
location=${2}
|
||||||
;;
|
;;
|
||||||
url:*)
|
url:*)
|
||||||
url=${2}
|
url=${2}
|
||||||
;;
|
;;
|
||||||
bkup_url:*)
|
bkup_url:*)
|
||||||
bkup_url=${2}
|
bkup_url=${2}
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -40,16 +40,16 @@ payloads=""
|
||||||
keyboard_layouts=""
|
keyboard_layouts=""
|
||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
case ${1} in
|
case ${1} in
|
||||||
-d)
|
-d)
|
||||||
displaymodes="${displaymodes}${2}"
|
displaymodes="${displaymodes}${2}"
|
||||||
shift ;;
|
shift ;;
|
||||||
-p)
|
-p)
|
||||||
payloads="${payloads}${2}"
|
payloads="${payloads}${2}"
|
||||||
shift ;;
|
shift ;;
|
||||||
-k)
|
-k)
|
||||||
keyboard_layouts="${keyboard_layouts}${2}"
|
keyboard_layouts="${keyboard_layouts}${2}"
|
||||||
shift ;;
|
shift ;;
|
||||||
*)
|
*)
|
||||||
board=${1} ;;
|
board=${1} ;;
|
||||||
esac
|
esac
|
||||||
shift
|
shift
|
||||||
|
|
|
@ -50,15 +50,18 @@ main()
|
||||||
|
|
||||||
while getopts r:b:m: option
|
while getopts r:b:m: option
|
||||||
do
|
do
|
||||||
case "${option}"
|
case "${option}" in
|
||||||
in
|
r)
|
||||||
r)rom=${OPTARG};;
|
rom=${OPTARG}
|
||||||
b)board=${OPTARG};;
|
;;
|
||||||
|
b)
|
||||||
|
board=${OPTARG}
|
||||||
|
;;
|
||||||
m)
|
m)
|
||||||
modifygbe=true
|
modifygbe=true
|
||||||
new_mac=${OPTARG}
|
new_mac=${OPTARG}
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
check_board
|
check_board
|
||||||
|
@ -111,17 +114,17 @@ detect_board()
|
||||||
path=${1}
|
path=${1}
|
||||||
filename=$(basename ${path})
|
filename=$(basename ${path})
|
||||||
case ${filename} in
|
case ${filename} in
|
||||||
grub_*)
|
grub_*)
|
||||||
board=$(echo "${filename}" | cut -d '_' -f2-3)
|
board=$(echo "${filename}" | cut -d '_' -f2-3)
|
||||||
;;
|
;;
|
||||||
seabios_withgrub_*)
|
seabios_withgrub_*)
|
||||||
board=$(echo "${filename}" | cut -d '_' -f3-4)
|
board=$(echo "${filename}" | cut -d '_' -f3-4)
|
||||||
;;
|
;;
|
||||||
*.tar.xz)
|
*.tar.xz)
|
||||||
_stripped_prefix=${filename#*_}
|
_stripped_prefix=${filename#*_}
|
||||||
board="${_stripped_prefix%.tar.xz}"
|
board="${_stripped_prefix%.tar.xz}"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
return 1
|
return 1
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue