mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-23 22:16:48 +00:00
fix golang version bad output direction
This commit is contained in:
+1
-1
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user