Browse Source

Fix docker/go.sh for Go versions without patch number

DarthSim 3 years ago
parent
commit
9a70bbe4e4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docker/go.sh

+ 1 - 1
docker/go.sh

@@ -33,7 +33,7 @@ if [[ $BUILDPLATFORM != $TARGETPLATFORM ]]; then
       exit 1
   esac
 
-  GOLANG_VERSION=$(go version | sed -E 's/.*go([0-9]+\.[0-9]+\.[0-9]+).*/\1/')
+  GOLANG_VERSION=$(go version | sed -E 's/.*go([0-9]+\.[0-9]+(\.[0-9]+)?).*/\1/')
 
   rm -rf /usr/local/go