From e628e1f6c8550cf4d7426a22e77265e941cff04b Mon Sep 17 00:00:00 2001 From: Camila Macedo Date: Tue, 15 Aug 2023 13:41:03 +0100 Subject: [PATCH] :bug: fix doc preview --- docs/book/install-and-build.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/book/install-and-build.sh b/docs/book/install-and-build.sh index cb44de9b986..47d184b95c8 100755 --- a/docs/book/install-and-build.sh +++ b/docs/book/install-and-build.sh @@ -23,7 +23,10 @@ THIS_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) cd "$THIS_DIR" -[[ -n "$(command -v gimme)" ]] && eval "$(gimme stable)" +if [[ -n "$(command -v gimme)" ]]; then + GO_VERSION=${GO_VERSION:-stable} # Use the provided GO_VERSION or default to 'stable' + eval "$(gimme $GO_VERSION)" +fi echo go version GOBIN=$THIS_DIR/functions go install ./...