From a4b324f3dc3def351550b6987b889bd82a90e704 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 7 Nov 2023 00:40:57 +0000 Subject: [PATCH] ref(goreleaser): don't use hacky echo where 'tr -d " "' will do --- goreleaser/install.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/goreleaser/install.sh b/goreleaser/install.sh index efd21bc..52c2c23 100644 --- a/goreleaser/install.sh +++ b/goreleaser/install.sh @@ -50,11 +50,10 @@ __init_goreleaser() { # This trims it down to just the version number: # 1.21.2 # shellcheck disable=SC2046,SC2005 # unquoted echo trims whitespace - echo $( - goreleaser --version 2> /dev/null | - grep 'GitVersion:' | - cut -d':' -f2 - ) + goreleaser --version 2> /dev/null | + grep 'GitVersion:' | + cut -d':' -f2 | + tr -d ' ' } }