Skip to content

Commit

Permalink
Merge pull request #259 from ne20002/feat/update.sh
Browse files Browse the repository at this point in the history
prevent rebuilding older rc versions
  • Loading branch information
nupplaphil authored Aug 23, 2024
2 parents 178cda5 + 72fe4d9 commit 030ed64
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,12 @@ function create_variant() {
}

# latest, stable version (just save the major version, not every hotfix)
curl -fsSL 'https://files.friendi.ca/' |tac|tac| \
latest_version=( $(curl -fsSL 'https://files.friendi.ca/' |tac|tac| \
grep -oE 'friendica-full-[[:digit:]]+\.[[:digit:]]+(\-[[:digit:]]+){0,1}\.tar\.gz' | \
grep -oE '[[:digit:]]+\.[[:digit:]]+' | \
sort -uV | \
tail -1 > latest.txt
tail -1) )
echo $latest_version > latest.txt

curl -fsSl 'https://raw.githubusercontent.com/friendica/friendica/develop/VERSION' > develop.txt

Expand Down Expand Up @@ -200,7 +201,7 @@ githubversions_rc=( $( git ls-remote --heads -q 'https://github.com/friendica/fr
sort -urV ) )
versions_rc=( $( printf '%s\n' "${githubversions_rc[@]}" | cut -d. -f1-2 | sort -urV ) )
for version in "${versions_rc[@]}"; do
if version_greater_or_equal "$version" "$min_version"; then
if version_greater_or_equal "$version" "$latest_version"; then
for variant in "${variants[@]}"; do

create_variant "$version"
Expand Down

0 comments on commit 030ed64

Please sign in to comment.