From 8bfaf2b48851cd9ee203a0e102754d8fa5411d85 Mon Sep 17 00:00:00 2001 From: Kay Date: Sun, 21 May 2017 15:29:36 +0200 Subject: [PATCH] fix REPO for sanity check --- update-from-repo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update-from-repo.sh b/update-from-repo.sh index 4feed41db..392e82101 100755 --- a/update-from-repo.sh +++ b/update-from-repo.sh @@ -99,7 +99,7 @@ if [[ $EUID -eq 0 ]]; then if [[ "$1" == *":"* ]] && [[ "$1" != *"latest"* ]]; then RRELEASE=${1##*:} else - RRELEASE=`curl -s -L https://github.com/webmin/webmin/blob/master/version | sed -n '/id="LC1"/s/.*">\([^<]*\).*/\1/p'` + RRELEASE=`curl -s -L https://github.com/${REPO}/blob/master/version | sed -n '/id="LC1"/s/.*">\([^<]*\).*/\1/p'` fi echo -e "${BLUE}Pulling in latest release of${NC} ${GREY}${PROD^}${NC} $RRELEASE ($HOST/$REPO)..." RS="$(git clone --depth 1 --branch $RRELEASE -q $HOST/$REPO.git "${TEMP}" 2>&1)"