Update InstallNET.sh

This commit is contained in:
Molly Lau 2022-12-01 15:53:47 +09:00 committed by GitHub
parent 665820a6ba
commit de57de5dba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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