From dd6c8d80a4d379d1e06ba65de4cb3d5b5b4578c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Fri, 8 Feb 2019 15:30:58 +0100 Subject: [PATCH] scripts: fail if hehlm is not present in PATH MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- scripts/build_local_shift.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/build_local_shift.sh b/scripts/build_local_shift.sh index 74ac0e37238..df3bdeaff80 100755 --- a/scripts/build_local_shift.sh +++ b/scripts/build_local_shift.sh @@ -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; }