From a3ecca25e38590b113c84a989fa17c96f84a9f79 Mon Sep 17 00:00:00 2001 From: Pavan Navarathna Devaraj Date: Mon, 4 Nov 2019 17:18:08 -0800 Subject: [PATCH] Use get.sh to install kanister tools in docs (#383) --- docs/tooling.rst | 7 ++----- scripts/get.sh | 4 ++-- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/docs/tooling.rst b/docs/tooling.rst index 7ab6a34778..31c9f60024 100644 --- a/docs/tooling.rst +++ b/docs/tooling.rst @@ -383,11 +383,8 @@ Installation of the tools requires `Go `_ to be .. code-block:: bash - # Installing kanctl - $ go install -v github.com/kanisterio/kanister/cmd/kanctl - - # Installing kando - $ go install -v github.com/kanisterio/kanister/cmd/kando + # The script installs both kanctl and kando + $ curl https://raw.githubusercontent.com/kanisterio/kanister/master/scripts/get.sh | bash Docker Image diff --git a/scripts/get.sh b/scripts/get.sh index 58cd9e58b1..d35b266d57 100755 --- a/scripts/get.sh +++ b/scripts/get.sh @@ -59,7 +59,7 @@ verifySupported() { exit 1 fi - local required_tools=("curl") + local required_tools=("curl" "shasum") for tool in "${required_tools[@]}"; do if ! type "${tool}" > /dev/null; then echo "${tool} is required" @@ -103,7 +103,7 @@ downloadFile() { pushd "${KANISTER_TMP_ROOT}" local filtered_checksum="./${kanister_dist}.sha256" grep "${kanister_dist}" < "${kanister_checksum}" > "${filtered_checksum}" - sha256sum -c "${filtered_checksum}" + shasum -a 256 -c "${filtered_checksum}" popd }