summaryrefslogtreecommitdiffstats
path: root/update.sh
diff options
context:
space:
mode:
authorTilo Spannagel <development@tilosp.de>2017-06-06 15:24:08 +0200
committerTilo Spannagel <development@tilosp.de>2017-06-06 15:41:57 +0200
commitd365e45c022bcd901a9770b18b48c2aa29e4cc4c (patch)
tree17389fc7b3a4f98b02ae018d8637d96bbfb6b726 /update.sh
parentaa40fa7a75727bf41e5b1b6de19769a5c1fd79a1 (diff)
Use the downloads index to get the latest version
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/update.sh b/update.sh
index b8afc6ad..4d3a54e1 100755
--- a/update.sh
+++ b/update.sh
@@ -11,10 +11,10 @@ function version_greater_or_equal() {
[[ "$(printf '%s\n' "$@" | sort -V | head -n 1)" != "$1" || "$1" == "$2" ]];
}
-latests=( $(curl -sSL 'https://download.nextcloud.com/server/releases/' |tac|tac| \
- grep -oE '>nextcloud-[[:digit:]]+(.[[:digit:]]+)+\.tar\.bz2<' | \
+latests=( $( curl -fsSL 'https://download.nextcloud.com/server/releases/' |tac|tac| \
+ grep -oE 'nextcloud-[[:digit:]]+(.[[:digit:]]+)+' | \
grep -oE '[[:digit:]]+(.[[:digit:]]+)+' | \
- sort -V ) )
+ sort -uV ) )
travisEnv=
for latest in "${latests[@]}"; do