From de57de5dba13d085a5a0b27177a39de92112b899 Mon Sep 17 00:00:00 2001 From: Molly Lau Date: Thu, 1 Dec 2022 15:53:47 +0900 Subject: [PATCH] Update InstallNET.sh --- Linux_reinstall/InstallNET.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Linux_reinstall/InstallNET.sh b/Linux_reinstall/InstallNET.sh index 3ef4410..6da6bd3 100644 --- a/Linux_reinstall/InstallNET.sh +++ b/Linux_reinstall/InstallNET.sh @@ -341,7 +341,7 @@ function getDisk(){ # $1 is timezone checkfile direction, $2 $3 $4 are api keys. function getUserTimezone(){ - if [[ "$TimeZone" == "0" ]]; then + if [[ "$TimeZone" == "" ]]; then UserIP=`who am i | awk '{print $5}' | sed 's/(//g' | sed 's/)//g'` for Count in "$2" "$3" "$4"; do [[ "$TimeZone" == "Asia/Shanghai" ]] && break