mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-19 12:06:25 +00:00
ref(goreleaser): don't use hacky echo where 'tr -d " "' will do
This commit is contained in:
@@ -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 ' '
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user