From 56e82f0d1c5782b6f28de035558987394088c83c Mon Sep 17 00:00:00 2001 From: Hyy2001X <1804430051@qq.com> Date: Mon, 26 Oct 2020 22:11:44 +0800 Subject: [PATCH] Adjust Github release's link --- Customize/AutoUpdate.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Customize/AutoUpdate.sh b/Customize/AutoUpdate.sh index 2636384..0ca334a 100644 --- a/Customize/AutoUpdate.sh +++ b/Customize/AutoUpdate.sh @@ -3,7 +3,7 @@ # AutoBuild Module by Hyy2001 # AutoUpdate -Version=V3.8 +Version=V3.9 DEFAULT_DEVICE=d-team_newifi-d2 Github=https://github.com/Hyy2001X/AutoBuild-Actions @@ -11,9 +11,9 @@ TIME() { echo -ne "\n[$(date "+%H:%M:%S")] " } -Github_Tags=$Github/releases/tag/AutoUpdate Github_Download=$Github/releases/download/AutoUpdate Author=${Github##*com/} +Github_Tags=https://api.github.com/repos/$Author/releases/latest cd /etc CURRENT_VERSION=$(awk 'NR==1' ./openwrt_info) CURRENT_DEVICE=$(jsonfilter -e '@.model.id' < "/etc/board.json" | tr ',' '_')