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