Обновить install.sh
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
REPO="https://git.ownsrv.ru/yanistyle/podkop/releases/latest/"
|
REPO="https://git.ownsrv.ru/yanistyle/podkop/releases/latest"
|
||||||
DOWNLOAD_DIR="/tmp/podkop"
|
DOWNLOAD_DIR="/tmp/podkop"
|
||||||
COUNT=3
|
COUNT=3
|
||||||
|
|
||||||
@@ -26,7 +26,7 @@ main() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if command -v curl &> /dev/null; then
|
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://git.ownsrv.ru/yanistyle/podkop/releases/latest/")
|
||||||
|
|
||||||
if echo "$check_response" | grep -q 'API rate limit '; then
|
if echo "$check_response" | grep -q 'API rate limit '; then
|
||||||
msg "You've reached rate limit from GitHub. Repeat in five minutes."
|
msg "You've reached rate limit from GitHub. Repeat in five minutes."
|
||||||
|
|||||||
Reference in New Issue
Block a user