diff --git a/chroot.sh b/chroot.sh index bff52ed..581abb0 100755 --- a/chroot.sh +++ b/chroot.sh @@ -17,12 +17,10 @@ while continue fi - if [[ -n "$input" ]]; then - timezone="$input" - fi - if [[ ! -f "/usr/share/zoneinfo/${timezone}" ]]; then echoerr "[ERROR] The selected time zone does not exist" + else + timezone="$input" fi [[ ! -f "/usr/share/zoneinfo/${timezone}" ]]