From: AJ ONeal Date: Sun, 14 Jun 2020 05:11:43 +0000 (-0600) Subject: bugfix version handling regression X-Git-Url: https://git.josue.xyz/?a=commitdiff_plain;h=525a3b3c1113670c0a0e06cca8a86647fe5ef958;p=webi-installers%2F.git bugfix version handling regression --- 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