summaryrefslogtreecommitdiffstats
path: root/update.sh
diff options
context:
space:
mode:
authorTilo Spannagel <development@tilosp.de>2020-03-12 00:53:13 +0100
committerTilo Spannagel <development@tilosp.de>2020-03-12 00:53:25 +0100
commit37bc7e9e0ff71590467146147b2177c012736101 (patch)
tree7e799af090baa61725834122c77663aa40ac711a /update.sh
parentf86d328c5b6a55fa917c5387690049576e120c62 (diff)
Make generate-stackbrew-library.sh reproducible
Signed-off-by: Tilo Spannagel <development@tilosp.de>
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| \