fix golang version bad output direction

This commit is contained in:
AJ ONeal
2020-06-14 13:29:56 -06:00
parent a756cefa60
commit 969df21e47
+1 -1
View File
@@ -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() {