mirror of
https://github.com/itdoginfo/podkop.git
synced 2025-12-06 11:36:50 +03:00
Check curl
This commit is contained in:
10
install.sh
10
install.sh
@@ -43,11 +43,13 @@ main() {
|
|||||||
add_tunnel
|
add_tunnel
|
||||||
fi
|
fi
|
||||||
|
|
||||||
check_response=$(curl -s "https://api.github.com/repos/itdoginfo/podkop/releases/latest")
|
if command -v curl &> /dev/null; then
|
||||||
|
check_response=$(curl -s "https://api.github.com/repos/itdoginfo/podkop/releases/latest")
|
||||||
|
|
||||||
if echo "$check_response" | grep -q 'API rate limit '; then
|
if echo "$check_response" | grep -q 'API rate limit '; then
|
||||||
echo "You've reached rate limit from GitHub. Repeat in five minutes."
|
echo "You've reached rate limit from GitHub. Repeat in five minutes."
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
download_success=0
|
download_success=0
|
||||||
|
|||||||
Reference in New Issue
Block a user