Skip to content
Closed
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
19 changes: 10 additions & 9 deletions scripts/helm-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@

set -euf -o pipefail

helmdocsv=1.7.0
helmdocsv=1.14.2
bindir=$( cd "${0%/*}" && pwd ) # Change to script dir and set bin dir to this
targetbin=$( cd "$bindir"/.. && pwd )/target/bin
helmdocsbin=$targetbin/helm-docs-$helmdocsv
os=""
arch=""

if [ ! -f "$helmdocsbin" ]; then
case $(uname | tr '[:upper:]' '[:lower:]') in
darwin*)
os=darwin
case $(uname) in
Darwin)
os=Darwin
arch=x86_64
;;
linux*)
os=linux
Linux)
os=Linux
case $(uname -m) in
x86_64) arch=x86_64 ;;
amd64) arch=amd64 ;;
amd64) arch=x86_64 ;;
arm)
tmp=$(dpkg --print-architecture)
if echo "$tmp" | grep -q arm64; then
Expand All @@ -31,10 +31,11 @@ if [ ! -f "$helmdocsbin" ]; then
arch=armv6
fi
;;
aarch64) arch=arm64 ;;
esac
;;
msys*)
os=windows
MINGW*)
os=Windows
arch=x86_64
;;
esac
Expand Down
Loading