Check curl

This commit is contained in:
itdoginfo
2025-04-03 17:24:31 +03:00
parent 3cb4be6427
commit 1df1defa5e

View File

@@ -43,11 +43,13 @@ main() {
add_tunnel
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
echo "You've reached rate limit from GitHub. Repeat in five minutes."
exit 1
if echo "$check_response" | grep -q 'API rate limit '; then
echo "You've reached rate limit from GitHub. Repeat in five minutes."
exit 1
fi
fi
download_success=0