From 276cb0e02dd8783cefd80601ec0ec3ffe34d1b98 Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Wed, 3 Jul 2019 21:17:39 +0200 Subject: [PATCH] don't fetch the whole lib again since the DB password changes --- lib.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib.sh b/lib.sh index bd613648..a81382d7 100644 --- a/lib.sh +++ b/lib.sh @@ -723,9 +723,8 @@ download_verify_nextcloud_stable() { while [ -z "$NCVERSION" ] do print_text_in_color "$Cyan" "The variable 'NCVERSION' is empty, fetching it again..." - # shellcheck source=lib.sh - NC_UPDATE=1 . <(curl -sL https://raw.githubusercontent.com/nextcloud/vm/master/lib.sh) - unset NC_UPDATE + NCVERSION=$(curl -s -m 900 $NCREPO/ | sed --silent 's/.*href="nextcloud-\([^"]\+\).zip.asc".*/\1/p' | sort --version-sort | tail -1) + STABLEVERSION="nextcloud-$NCVERSION" done install_if_not gnupg rm -f "$HTML/$STABLEVERSION.tar.bz2"