diff options
author | Daniel Hansson <mailto@danielhansson.nu> | 2022-10-07 14:54:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-07 14:54:52 +0300 |
commit | 9e7d9e60ac37bf4de6df03ccf109e7c86e39dc6d (patch) | |
tree | e70cf698665a7a4caccb723189c8cc9074c5f6a8 | |
parent | 033771df354e311f40e8ef22ef35365ba20b716d (diff) |
order changed on server
Signed-off-by: Daniel Hansson <mailto@danielhansson.nu>
-rw-r--r-- | nextcloud_update.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nextcloud_update.sh b/nextcloud_update.sh index 34ab65f2..12a90975 100644 --- a/nextcloud_update.sh +++ b/nextcloud_update.sh @@ -705,7 +705,7 @@ then elif [ -f /tmp/nextmajor.version ] then NCBAD=$(cat /tmp/nextmajor.version) - NCVERSION=$(curl -s -m 900 $NCREPO/ | sed --silent 's/.*href="nextcloud-\([^"]\+\).zip.asc".*/\1/p' | sort --version-sort | grep $NCNEXT | tail -1) + NCVERSION=$(curl -s -m 900 $NCREPO/ | sed --silent 's/.*href="nextcloud-\([^"]\+\).zip.asc".*/\1/p' | sort --version-sort | grep $NCNEXT | head -1) if [ -z "$NCVERSION" ] then msg_box "The version that you are trying to upgrade to doesn't exist." |