Explorar o código

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

DarthSim %!s(int64=3) %!d(string=hai) anos
pai
achega
9a70bbe4e4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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