From: AJ ONeal Date: Sun, 14 Jun 2020 19:29:56 +0000 (-0600) Subject: fix golang version bad output direction X-Git-Url: https://git.josue.xyz/?a=commitdiff_plain;h=969df21e47c4d8312925638739a23eef0c349e1c;p=webi-installers%2F.git fix golang version bad output direction --- diff --git a/golang/install.bash b/golang/install.bash index 16a601f..fa97d20 100644 --- a/golang/install.bash +++ b/golang/install.bash @@ -53,7 +53,7 @@ pkg_get_current_version() { # go version go1.14.2 darwin/amd64 # This trims it down to just the version number: # 1.14.2 - echo "$(go version >2/dev/null | head -n 1 | cut -d' ' -f3 | sed 's:go::')" + echo "$(go version 2>/dev/null | head -n 1 | cut -d' ' -f3 | sed 's:go::')" } pkg_format_cmd_version() {