diff --git a/install.sh b/install.sh index 34d4e30..d52e27f 100755 --- a/install.sh +++ b/install.sh @@ -43,6 +43,13 @@ main() { add_tunnel fi + 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 + fi + download_success=0 while read -r url; do filename=$(basename "$url") diff --git a/luci-app-podkop/Makefile b/luci-app-podkop/Makefile index 5926321..4854f21 100644 --- a/luci-app-podkop/Makefile +++ b/luci-app-podkop/Makefile @@ -1,7 +1,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-podkop -PKG_VERSION:=0.3.30 +PKG_VERSION:=0.3.31 PKG_RELEASE:=1 LUCI_TITLE:=LuCI podkop app diff --git a/podkop/Makefile b/podkop/Makefile index d7922c4..6d73091 100644 --- a/podkop/Makefile +++ b/podkop/Makefile @@ -1,7 +1,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=podkop -PKG_VERSION:=0.3.30 +PKG_VERSION:=0.3.31 PKG_RELEASE:=1 PKG_MAINTAINER:=ITDog