Skip to content

Commit 8e8ba8a

Browse files
authored
修改判断是否能够访问github资源文件
1 parent 6a12582 commit 8e8ba8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function download_jdk {
2525
K8_CS_FILE="YES"
2626
fi
2727

28-
if ((`curl https://github.com --connect-timeout 5 -m 5 -s | wc -l` > 10)) ; then
28+
if ((`curl https://objects.githubusercontent.com --connect-timeout 5 -m 5 -s | wc -l` > 10)) ; then
2929
echo "[+] Welcome to Github Script..."
3030
wget -L https://github.com/AlphabugX/csOnvps/releases/download/jdk-8u202-linux-x64/jdk-8u202-linux-x64.tar.gz
3131
if [ $K8_CS_FILE == "YES" ];then

0 commit comments

Comments
 (0)