From bed11eaab2ff60ee80e85dca5651c0cddef25b34 Mon Sep 17 00:00:00 2001 From: Laurent Goderre Date: Mon, 6 Jan 2025 11:03:13 -0500 Subject: [PATCH] Fix version script on mac wc on mac adds whitespace which breaks ther version script --- versions.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/versions.sh b/versions.sh index bfad73858..ca4d3bbaa 100755 --- a/versions.sh +++ b/versions.sh @@ -5,7 +5,7 @@ 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="$( @@ -13,7 +13,7 @@ debian="$( | grep -vE '^latest$|[0-9.-]' \ | head -1 )" -[ "$(wc -l <<<"$debian")" = 1 ] +[ "$(wc -l <<<"$debian" | tr -d '[:space:]')" = 1 ] export debian gosus="$( @@ -121,6 +121,10 @@ packages="$( )" for version in "${versions[@]}"; do + if [ "$(echo $version | grep 'stackbrew')" ]; then + continue + fi + export version rcVersion="${version%-rc}" doc="$(