From 525a3b3c1113670c0a0e06cca8a86647fe5ef958 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sat, 13 Jun 2020 23:11:43 -0600 Subject: [PATCH] bugfix version handling regression --- golang/install.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/golang/install.bash b/golang/install.bash index 2ecf7d7..ac60033 100644 --- a/golang/install.bash +++ b/golang/install.bash @@ -65,7 +65,7 @@ cur_go_version="" if [ -n "$cur_go" ]; then cur_go_version=$(go version | cut -d' ' -f3 | sed 's:go::') - if [ "$cur_go_version" == "$WEBI_VERSION" ]; then + if [ "$cur_go_version" == "$(echo $WEBI_VERSION | sed 's:\.0::g')" ]; then echo "go$WEBI_VERSION already installed at $cur_go" exit 0 else -- 2.25.1