mirror of
https://github.com/Le0xFF/VoidLinuxInstaller.git
synced 2024-09-11 18:47:17 +03:00
Fix if condition for timezone in chroot.sh script
This commit is contained in:
parent
bd6fb8e00a
commit
9d43e44735
6
vli.sh
6
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
|
||||
|
Loading…
Reference in New Issue
Block a user