From b8bd5115b4618b8fa7409d5820008c357aa5d6f3 Mon Sep 17 00:00:00 2001 From: Kay Marquardt Date: Thu, 16 Nov 2023 13:47:32 +0100 Subject: [PATCH] fix update-from-repo.sh -release:lastest: get version from raw.githubusercontent.com --- update-from-repo.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update-from-repo.sh b/update-from-repo.sh index 7d1b255d2..c976cfac2 100755 --- a/update-from-repo.sh +++ b/update-from-repo.sh @@ -3,7 +3,7 @@ # Update webmin/usermin to the latest develop version from GitHub repo # inspired by authentic-theme/theme-update.sh script, thanks @iliajie # -VERS="1.6.9, 2020-06-18" +VERS="1.6.10, 2023-11-16" # COPY=" Kay Marquardt https://github.com/gnadelwartz" ############################################################################# @@ -285,7 +285,7 @@ fi if [[ "$1" == *":"* ]] && [[ "$1" != *"latest"* ]]; then RRELEASE=${1##*:} elif [[ "${CURL}" != "" ]] ; then - RRELEASE=`${CURL} -s -L https://github.com/${REPO}/blob/master/version | sed -n '/id="LC1"/s/.*">\([^<]*\).*/\1/p'` + RRELEASE="$(${CURL} -s -L https://raw.githubusercontent.com/${REPO}/master/version)" else echo -e "${RED}Error: Command \`curl\` is not installed or not in the \`PATH\`.${NC} try with -release:1.881" exit 3