Don't change default timezone on user input part 2
This commit is contained in:
@@ -17,13 +17,13 @@ while
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -f "/usr/share/zoneinfo/${timezone}" ]]; then
|
if [[ ! -f "/usr/share/zoneinfo/${input}" ]]; then
|
||||||
echoerr "[ERROR] The selected time zone does not exist"
|
echoerr "[ERROR] The selected time zone does not exist"
|
||||||
else
|
else
|
||||||
timezone="$input"
|
timezone="$input"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[[ ! -f "/usr/share/zoneinfo/${timezone}" ]]
|
[[ ! -f "/usr/share/zoneinfo/${input}" ]]
|
||||||
do true; done
|
do true; done
|
||||||
|
|
||||||
echo "[INFO] Setting ${timezone} as the time zone"
|
echo "[INFO] Setting ${timezone} as the time zone"
|
||||||
|
|||||||
Reference in New Issue
Block a user