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 0e7d336
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 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

0 comments on commit 0e7d336

Please sign in to comment.