Fix the download script and update README
This commit is contained in:
@ -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'
|
||||
echo ' $ cdh -h'
|
||||
|
Reference in New Issue
Block a user