Skip to content

Commit 0e7d336

Browse files
Fix version script on mac
wc on mac adds whitespace which breaks ther version script
1 parent c60d293 commit 0e7d336

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

versions.sh

+2-2
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="$(

0 commit comments

Comments
 (0)