bugfix version handling regression
authorAJ ONeal <coolaj86@gmail.com>
Sun, 14 Jun 2020 05:11:43 +0000 (23:11 -0600)
committerAJ ONeal <coolaj86@gmail.com>
Sun, 14 Jun 2020 05:11:43 +0000 (23:11 -0600)
golang/install.bash

index 2ecf7d7b7cce042a4975a601f4093c3ae040e137..ac60033db7b4a340eaeb3ed8839c56e6ad163c46 100644 (file)
@@ -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