diff --git a/README.md b/README.md index a322e3e..1100173 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Prebuilt binaries exist for **Linux x86_64** and **MacOS arm64** and **x86_64** Don't forget to add the binary to $PATH ```BASH -$ curl https://raw.githubusercontent.com/allanger/check-da-helm/main/scripts/download_cdm.sh | bash +$ curl https://raw.githubusercontent.com/allanger/check-da-helm/main/scripts/download_cdh.sh | bash $ cdm -h ``` diff --git a/scripts/download_cdh.sh b/scripts/download_cdh.sh index 3d47749..1211dfa 100755 --- a/scripts/download_cdh.sh +++ b/scripts/download_cdh.sh @@ -33,7 +33,7 @@ case "$(uname)" in exit 1 ;; esac -LATEST_VERSION="v$(curl -s https://raw.githubusercontent.com/allanger/check-da-helm/main/Cargo.toml | awk -F ' = ' '$1 ~ /version/ { gsub(/[\"]/, "", $2); printf("%s",$2) }')" +LATEST_VERSION="v$(curl -s https://raw.githubusercontent.com/allanger/check-da-helm/main/Cargo.toml | awk -F ' = ' '$1 ~ /version/ { gsub(/[\"]/, "", $2); printf("%s",$2); exit}')" echo "Downloading $LATEST_VERSION" RELEASE_NAME=cdh-$LATEST_VERSION-$TARGET @@ -47,4 +47,4 @@ chmod +x cdh echo 'Make sure that cdh is in your $PATH' echo 'Try: ' echo ' $ export PATH=$PATH:$PWD' -echo ' $ cdh -h' \ No newline at end of file +echo ' $ cdh -h'