do sed before awk in locale detection to make it work on debian too, fixes #8

This commit is contained in:
Dan Johansen 2019-12-02 20:48:37 +01:00
parent ac40cdad53
commit 84dace6abb
1 changed files with 1 additions and 1 deletions

View File

@ -631,7 +631,7 @@ if [ ! -z "$TIMEZONE" ]; then
while read -r line; do
let i=$i+1
W+=($line "")
done < <( cat /etc/locale.gen | grep "UTF-8" | tail -n +2 | awk '{print $1}' | sed -e 's/^#*//' )
done < <( cat /etc/locale.gen | grep "UTF-8" | tail -n +2 | sed -e 's/^#*//' | awk '{print $1}' )
LOCALE=$(dialog --clear --title "Manjaro ARM Installer" \
--menu "Choose your locale!" 20 50 15 \
"${W[@]}" 3>&1 1>&2 2>&3 3>&- \