소스 검색

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

DarthSim 3 년 전
부모
커밋
9a70bbe4e4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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