shellcheck step 3

This commit is contained in:
Jesús 2022-05-24 10:43:16 +08:00
parent 71861d4021
commit 94f4cf7ff5
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766

View File

@ -1117,7 +1117,7 @@ archsetlocale(){
echo "echo \"LC_COLLATE=C\" >> /mnt/etc/locale.conf" echo "echo \"LC_COLLATE=C\" >> /mnt/etc/locale.conf"
echo "LC_COLLATE=C" >> /mnt/etc/locale.conf echo "LC_COLLATE=C" >> /mnt/etc/locale.conf
echo "sed -i '/#${locale}.UTF-8/s/^#//g' /mnt/etc/locale.gen" echo "sed -i '/#${locale}.UTF-8/s/^#//g' /mnt/etc/locale.gen"
sed -i '/#'${locale}'.UTF-8/s/^#//g' /mnt/etc/locale.gen sed -i '/#'"${locale}"'.UTF-8/s/^#//g' /mnt/etc/locale.gen
archchroot setlocale archchroot setlocale
pressanykey pressanykey
fi fi
@ -1129,7 +1129,7 @@ archsetlocalechroot(){
} }
archsettime(){ archsettime(){
items=$(ls -l /mnt/usr/share/zoneinfo/ | grep '^d' | gawk -F':[0-9]* ' '/:/{print $2}') items=$(find /usr/share/zoneinfo/ -mindepth 1 -maxdepth 1 -type d -printf '%f/\n' | sort)
options=() options=()
for item in ${items}; do for item in ${items}; do
options+=("${item}" "") options+=("${item}" "")