Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 14 additions & 7 deletions hadoop-ozone/dev-support/checks/install/hugo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,30 @@
# This script installs Hugo.
# Requires _install_tool from _lib.sh. Use `source` for both scripts, because it modifies $PATH.

: ${HUGO_VERSION:=0.83.1}
: ${HUGO_VERSION:=0.141.0}

_install_hugo() {
local os=$(uname -s)
local arch=$(uname -m)

mkdir bin

case "${os}" in
Darwin)
os=macOS
case "${arch}" in
x86_64)
arch=amd64
;;
aarch64)
arch=arm64
;;
esac

case "${arch}" in
x86_64)
arch=64bit
case "${os}" in
Darwin)
os=darwin
arch=universal
;;
Linux)
os=linux
;;
esac

Expand Down
Loading