Skip to content

Commit b48761d

Browse files
committed
[fix] : Use common argument parser
1 parent 1721611 commit b48761d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

channels/releng/airootfs.any/root/customize_airootfs.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,13 @@ language="en"
2727

2828

2929
# Parse arguments
30-
while getopts 'p:bt:k:rxu:o:i:s:da:g:z:l:' arg; do
30+
while getopts 'p:bt:k:xu:o:i:s:da:g:z:l:' arg; do
3131
case "${arg}" in
3232
p) password="${OPTARG}" ;;
3333
b) boot_splash=true ;;
3434
t) theme_name="${OPTARG}" ;;
35-
k) kernel_config_line=(${OPTARG}) ;;
35+
#k) kernel_config_line=(${OPTARG}) ;;
36+
k) IFS=" " read -r -a kernel_config_line <<< "${OPTARG}" ;;
3637
u) username="${OPTARG}" ;;
3738
o) os_name="${OPTARG}" ;;
3839
i) install_dir="${OPTARG}" ;;
@@ -43,6 +44,7 @@ while getopts 'p:bt:k:rxu:o:i:s:da:g:z:l:' arg; do
4344
g) localegen="${OPTARG/./\\.}\\" ;;
4445
z) timezone="${OPTARG}" ;;
4546
l) language="${OPTARG}" ;;
47+
*) : ;;
4648
esac
4749
done
4850

0 commit comments

Comments
 (0)