Update InstallNET.sh

This commit is contained in:
Molly Lau 2023-06-10 16:46:37 +09:00 committed by GitHub
parent cebc13e22d
commit 487669e99a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -518,7 +518,7 @@ function getUserTimezone() {
done
else
echo `timedatectl list-timezones` >> "$1"
[[ `grep -c "$TimeZone" "$1"` == "0" || ! -f "/usr/share/zoneinfo/$1" ]] && TimeZone="Asia/Tokyo"
[[ `grep -c "$TimeZone" "$1"` == "0" || ! "/usr/share/zoneinfo/$1" ]] && TimeZone="Asia/Tokyo"
rm -rf "$1"
fi
}