ref(goreleaser): don't use hacky echo where 'tr -d " "' will do

This commit is contained in:
AJ ONeal
2023-11-06 19:12:57 -07:00
parent 18217b2f17
commit a4b324f3dc
+4 -5
View File
@@ -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 ' '
}
}