From 9d43e4473570de7ecb63a803509b4aedc3a8ad4a Mon Sep 17 00:00:00 2001 From: Le0xFF <43521247+Le0xFF@users.noreply.github.com> Date: Sat, 30 Jul 2022 20:32:01 +0200 Subject: [PATCH] Fix if condition for timezone in chroot.sh script --- vli.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vli.sh b/vli.sh index 617e13d..8e0b427 100755 --- a/vli.sh +++ b/vli.sh @@ -276,7 +276,7 @@ function finish_chroot { while true ; do echo -e -n "\nType the timezone you want to set and press [ENTER] (i.e. America/New_York): " read -r user_timezone - if [[ ! -e /usr/share/zoneinfo/"\$user_timezone" ]] ; then + if [[ ! -f /usr/share/zoneinfo/"\$user_timezone" ]] ; then echo -e "\nEnter a valid timezone.\n" read -n 1 -r -p "[Press any key to continue...]" key break @@ -1445,13 +1445,13 @@ function install_base_system_and_chroot { select user_arch in x86_64 x86_64-musl ; do case "$user_arch" in x86_64) - echo -e -n "\n${BLUE_LIGHT}$user_arch${NORMAL} selected.\n\n" + echo -e -n "\n${BLUE_LIGHT}$user_arch${NORMAL} selected.\n" ARCH="$user_arch" export REPO=https://repo-default.voidlinux.org/current break 2 ;; x86_64-musl) - echo -e -n "\n${BLUE_LIGHT}$user_arch${NORMAL} selected.\n\n" + echo -e -n "\n${BLUE_LIGHT}$user_arch${NORMAL} selected.\n" ARCH="$user_arch" export REPO=https://repo-default.voidlinux.org/current/musl break 2