Skip to content

Commit

Permalink
Update nextcloud_update.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximumFish authored Mar 21, 2021
1 parent e7b6a79 commit c07fd36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nextcloud_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -507,14 +507,14 @@ lowest_compatible_nc 13
if [ -f /tmp/minor.version ]
then
NCBAD=$(cat /tmp/minor.version)
NCVERSION=20.0.8
NCVERSION=$(curl -s -m 900 $NCREPO/ | sed --silent 's/.*href="nextcloud-\([^"]\+\).zip.asc".*/\1/p' | sort --version-sort | grep "${CURRENTVERSION%%.*}" | tail -1)
export NCVERSION
export STABLEVERSION="nextcloud-$NCVERSION"
rm -f /tmp/minor.version
elif [ -f /tmp/nextmajor.version ]
then
NCBAD=$(cat /tmp/nextmajor.version)
NCVERSION=20.0.8
NCVERSION=$(curl -s -m 900 $NCREPO/ | sed --silent 's/.*href="nextcloud-\([^"]\+\).zip.asc".*/\1/p' | sort --version-sort | tail -1)
if [ -z "$NCVERSION" ]
then
msg_box "The version that you are trying to upgrade to doesn't exist."
Expand Down

0 comments on commit c07fd36

Please sign in to comment.