From 69dc96159122967a98da303fe2e2b6eab95aabbc Mon Sep 17 00:00:00 2001 From: Gregory Meno Date: Mon, 15 May 2017 10:28:39 -0700 Subject: [PATCH] fix the expected value of HUDSON_URL and exit when deps aren't installed when running locally Signed-off-by: Gregory Meno --- ceph-docker-lint/build/build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ceph-docker-lint/build/build b/ceph-docker-lint/build/build index 693d0387..e313ca4c 100755 --- a/ceph-docker-lint/build/build +++ b/ceph-docker-lint/build/build @@ -34,7 +34,7 @@ function check(){ function main() { # install some of our dependencies -if [ "${HUDSON_URL}" = "jenkins.ceph.com" ] +if [ "${HUDSON_URL}" = "https://jenkins.ceph.com" ] then sudo yum -y install epel-release sudo yum -y install ShellCheck @@ -45,10 +45,12 @@ else if [[ ! -x $(which jq) ]] then echo 'install jq first' + exit 1 fi if [[ ! -x $(which shellcheck) ]] then echo 'install shellcheck first' + exit 1 fi pull_request_id=${ghprbPullId:-$2} workspace=${WORKSPACE:-$1} -- 2.39.5