summaryrefslogtreecommitdiffstats
path: root/update.sh
diff options
context:
space:
mode:
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/update.sh b/update.sh
index 890b54f1..2c435c6b 100755
--- a/update.sh
+++ b/update.sh
@@ -157,6 +157,12 @@ function create_variant() {
done
}
+curl -fsSL 'https://download.nextcloud.com/server/releases/' |tac|tac| \
+ grep -oE 'nextcloud-[[:digit:]]+(\.[[:digit:]]+){2}' | \
+ grep -oE '[[:digit:]]+(\.[[:digit:]]+){2}' | \
+ sort -uV | \
+ tail -1 > latest.txt
+
find . -maxdepth 1 -type d -regextype sed -regex '\./[[:digit:]]\+\.[[:digit:]]\+\(-rc\|-beta\|-alpha\)\?' -exec rm -r '{}' \;
fullversions=( $( curl -fsSL 'https://download.nextcloud.com/server/releases/' |tac|tac| \