Skip to content

Commit 3df6130

Browse files
committed
add: dynamic go version parsing
1 parent 5d84959 commit 3df6130

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎ct/gotenberg.sh‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ function update_script() {
3939

4040
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "gotenberg" "gotenberg/gotenberg" "tarball" "latest" "/opt/gotenberg"
4141

42+
GO_VERSION="$(awk '$1=="go"{print $2}' /opt/gotenberg/go.mod | cut -d. -f1,2)" setup_go
43+
4244
msg_info "Building gotenberg (Patience)"
4345
cd /opt/gotenberg
4446
export CGO_ENABLED=0

0 commit comments

Comments
 (0)