and exit when deps aren't installed when running locally
Signed-off-by: Gregory Meno <gmeno@redhat.com>
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
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}