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
|
while true ; do
|
||||||
echo -e -n "\nType the timezone you want to set and press [ENTER] (i.e. America/New_York): "
|
echo -e -n "\nType the timezone you want to set and press [ENTER] (i.e. America/New_York): "
|
||||||
read -r user_timezone
|
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"
|
echo -e "\nEnter a valid timezone.\n"
|
||||||
read -n 1 -r -p "[Press any key to continue...]" key
|
read -n 1 -r -p "[Press any key to continue...]" key
|
||||||
break
|
break
|
||||||
@ -1445,13 +1445,13 @@ function install_base_system_and_chroot {
|
|||||||
select user_arch in x86_64 x86_64-musl ; do
|
select user_arch in x86_64 x86_64-musl ; do
|
||||||
case "$user_arch" in
|
case "$user_arch" in
|
||||||
x86_64)
|
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"
|
ARCH="$user_arch"
|
||||||
export REPO=https://repo-default.voidlinux.org/current
|
export REPO=https://repo-default.voidlinux.org/current
|
||||||
break 2
|
break 2
|
||||||
;;
|
;;
|
||||||
x86_64-musl)
|
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"
|
ARCH="$user_arch"
|
||||||
export REPO=https://repo-default.voidlinux.org/current/musl
|
export REPO=https://repo-default.voidlinux.org/current/musl
|
||||||
break 2
|
break 2
|
||||||
|
Loading…
Reference in New Issue
Block a user