统一修改国家和地区的判断方式
This commit is contained in:
@@ -27,7 +27,6 @@ TARGET="/tmp/node_exporter.tar.gz"
|
||||
is_cn=false
|
||||
|
||||
echo "Detecting geographic location..."
|
||||
|
||||
COUNTRY=$(curl -s --max-time 5 https://ipinfo.littlediary.cn/info | grep -o '"countryName":"[^"]*"' | cut -d'"' -f4)
|
||||
|
||||
if [ "$COUNTRY" = "China" ]; then
|
||||
@@ -45,8 +44,6 @@ echo "Downloading from: $DOWNLOAD_URL"
|
||||
curl -fL -o "$TARGET" "$DOWNLOAD_URL"
|
||||
|
||||
|
||||
|
||||
|
||||
# Extract
|
||||
echo "Extracting Node Exporter..."
|
||||
tar -zxvf /tmp/node_exporter.tar.gz -C /tmp
|
||||
|
||||
Reference in New Issue
Block a user