mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-08 00:50:28 +08:00
fix: check whether to use go proxy in build (#1149)
This commit is contained in:
2
build.sh
2
build.sh
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#try to connect to google to determine whether user need to use proxy
|
#try to connect to google to determine whether user need to use proxy
|
||||||
curl www.google.com -o /dev/null --connect-timeout 5 2 > /dev/null
|
curl www.google.com -o /dev/null --connect-timeout 5 2> /dev/null
|
||||||
if [ $? == 0 ]
|
if [ $? == 0 ]
|
||||||
then
|
then
|
||||||
echo "Successfully connected to Google, no need to use Go proxy"
|
echo "Successfully connected to Google, no need to use Go proxy"
|
||||||
|
Reference in New Issue
Block a user