#!/usr/bin/env sh # Invoking this script: # # To install the latest stable version: # curl https://raw.githubusercontent.com/teamhephy/workflow-cli/master/install-v2.sh | sh # # To install a specific released version ($VERSION): # curl https://raw.githubusercontent.com/teamhephy/workflow-cli/master/install-v2.sh | sh -s $VERSION # # - download deis cli binary # - making sure deis cli binary is executable # - explain what was done # # install current version unless overridden by first command-line argument VERSION=${1:-stable} set -euf check_platform_arch() { local supported="linux-amd64 darwin-amd64" if ! echo "${supported}" | tr ' ' '\n' | grep -q "${PLATFORM}-${ARCH}"; then cat <