|
|
@ -190,7 +190,7 @@ mw_update_dev() |
|
|
|
{ |
|
|
|
{ |
|
|
|
cn=$(curl -fsSL -m 10 http://ipinfo.io/json | grep "\"country\": \"CN\"") |
|
|
|
cn=$(curl -fsSL -m 10 http://ipinfo.io/json | grep "\"country\": \"CN\"") |
|
|
|
if [ ! -z "$cn" ];then |
|
|
|
if [ ! -z "$cn" ];then |
|
|
|
curl -fsSL https://gitee.com/midoks/mdserver-web/raw/master/scripts/update_dev.sh | bash |
|
|
|
curl -fsSL https://gitee.com/midoks/mdserver-web/raw/dev/scripts/update_dev.sh | bash |
|
|
|
else |
|
|
|
else |
|
|
|
curl -fsSL https://raw.githubusercontent.com/midoks/mdserver-web/dev/scripts/update_dev.sh | bash |
|
|
|
curl -fsSL https://raw.githubusercontent.com/midoks/mdserver-web/dev/scripts/update_dev.sh | bash |
|
|
|
fi |
|
|
|
fi |
|
|
|