Skip to content

Commit

Permalink
Fix version script on mac
Browse files Browse the repository at this point in the history
wc on mac adds whitespace which breaks ther version script
  • Loading branch information
LaurentGoderre committed Jan 6, 2025
1 parent c60d293 commit bed11ea
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ alpine="$(
bashbrew cat --format '{{ .TagEntry.Tags | join "\n" }}' https://github.com/docker-library/official-images/raw/HEAD/library/alpine:latest \
| grep -E '^[0-9]+[.][0-9]+$'
)"
[ "$(wc -l <<<"$alpine")" = 1 ]
[ "$(wc -l <<<"$alpine" | tr -d '[:space:]')" = 1 ]
export alpine

debian="$(
bashbrew cat --format '{{ .TagEntry.Tags | join "\n" }}' https://github.com/docker-library/official-images/raw/HEAD/library/debian:latest \
| grep -vE '^latest$|[0-9.-]' \
| head -1
)"
[ "$(wc -l <<<"$debian")" = 1 ]
[ "$(wc -l <<<"$debian" | tr -d '[:space:]')" = 1 ]
export debian

gosus="$(
Expand Down Expand Up @@ -121,6 +121,10 @@ packages="$(
)"

for version in "${versions[@]}"; do
if [ "$(echo $version | grep 'stackbrew')" ]; then
continue
fi

export version rcVersion="${version%-rc}"

doc="$(
Expand Down

0 comments on commit bed11ea

Please sign in to comment.