Skip to content
Snippets Groups Projects
Unverified Commit c38c61e3 authored by Tilo Spannagel's avatar Tilo Spannagel Committed by GitHub
Browse files

Merge pull request #1031 from nextcloud/generate-stackbrew-library-sh

Make generate-stackbrew-library.sh reproducible
parents f86d328c 5e9de806
No related branches found
No related tags found
No related merge requests found
......@@ -67,11 +67,7 @@ join() {
echo "${out#$sep}"
}
latest=$( 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=$( cat latest.txt )
# Generate each of the tags.
versions=( */ )
......
18.0.2
......@@ -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| \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment