Skip to content

Commit

Permalink
Use get.sh to install kanister tools in docs (#383)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavannd1 authored and mergify[bot] committed Nov 5, 2019
1 parent 91a332a commit a3ecca2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
7 changes: 2 additions & 5 deletions docs/tooling.rst
Original file line number Diff line number Diff line change
Expand Up @@ -383,11 +383,8 @@ Installation of the tools requires `Go <https://golang.org/doc/install>`_ 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
Expand Down
4 changes: 2 additions & 2 deletions scripts/get.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit a3ecca2

Please sign in to comment.