Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit bed11ea

Browse files
committedJan 6, 2025·
Fix version script on mac
wc on mac adds whitespace which breaks ther version script
1 parent c60d293 commit bed11ea

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed
 

‎versions.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ alpine="$(
55
bashbrew cat --format '{{ .TagEntry.Tags | join "\n" }}' https://github.com/docker-library/official-images/raw/HEAD/library/alpine:latest \
66
| grep -E '^[0-9]+[.][0-9]+$'
77
)"
8-
[ "$(wc -l <<<"$alpine")" = 1 ]
8+
[ "$(wc -l <<<"$alpine" | tr -d '[:space:]')" = 1 ]
99
export alpine
1010

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

1919
gosus="$(
@@ -121,6 +121,10 @@ packages="$(
121121
)"
122122

123123
for version in "${versions[@]}"; do
124+
if [ "$(echo $version | grep 'stackbrew')" ]; then
125+
continue
126+
fi
127+
124128
export version rcVersion="${version%-rc}"
125129

126130
doc="$(

0 commit comments

Comments
 (0)
Please sign in to comment.