Skip to content

Commit

Permalink
scripts: fail if hehlm is not present in PATH
Browse files Browse the repository at this point in the history
To build OLM on minishift it is required to have the helm binary
available so adding a check to verify its existence.

Signed-off-by: Sébastien Han <seb@redhat.com>
  • Loading branch information
leseb committed Feb 8, 2019
1 parent 51e33cf commit dd6c8d8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/build_local_shift.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
# This is used to start and build services for running e2e tests

set -e

if ! command -v helm &>/dev/null; then
echo "'helm' binary not present in your PATH, download it here: https://github.com/helm/helm/releases"
exit 1
fi

minishift start \
|| { echo 'Cannot start shift.'; exit 1; }

Expand Down

0 comments on commit dd6c8d8

Please sign in to comment.