This is an automated email from the ASF dual-hosted git repository. dwysakowicz pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/master by this push: new 2905ec486acb [FLINK-37176][docs] Support mac binary for setup_hugo 2905ec486acb is described below commit 2905ec486acb29d76ed11e3795db4186436dd27e Author: Gustavo de Morais <gdemor...@confluent.io> AuthorDate: Mon Jan 20 13:15:21 2025 +0100 [FLINK-37176][docs] Support mac binary for setup_hugo --- docs/setup_hugo.sh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/docs/setup_hugo.sh b/docs/setup_hugo.sh old mode 100644 new mode 100755 index 5f3fa2902847..0abd54fcb560 --- a/docs/setup_hugo.sh +++ b/docs/setup_hugo.sh @@ -18,8 +18,19 @@ ################################################################################ # setup hugo -HUGO_REPO=https://github.com/gohugoio/hugo/releases/download/v0.110.0/hugo_extended_0.110.0_Linux-64bit.tar.gz -HUGO_ARTIFACT=hugo_extended_0.110.0_Linux-64bit.tar.gz + +# Detect Operating System +OS="Linux" +[[ "$OSTYPE" == "darwin"* ]] && OS="Mac" + +# Setup Hugo based on OS +if [ "$OS" = "Mac" ]; then + HUGO_ARTIFACT="hugo_extended_0.110.0_darwin-universal.tar.gz" +else + HUGO_ARTIFACT="hugo_extended_0.110.0_Linux-64bit.tar.gz" +fi + +HUGO_REPO="https://github.com/gohugoio/hugo/releases/download/v0.110.0/${HUGO_ARTIFACT}" if ! curl --fail -OL $HUGO_REPO ; then echo "Failed to download Hugo binary" exit 1