Merge "Expose stream as a env variable" v0.4.2
authorJamo Luhrsen <jluhrsen@redhat.com>
Fri, 30 Jun 2017 02:43:40 +0000 (02:43 +0000)
committerGerrit Code Review <gerrit@linuxfoundation.org>
Fri, 30 Jun 2017 02:43:40 +0000 (02:43 +0000)
shell/git-validate-jira-urls.sh

index d44fec9..51d5132 100644 (file)
@@ -15,7 +15,7 @@
 set -e -o pipefail
 set +u
 
-JIRA_LINK=$(git rev-list --format=%B --max-count=1 HEAD | grep -io 'http[s]*://jira\..*')
+JIRA_LINK=$(git rev-list --format=%B --max-count=1 HEAD | grep -io 'http[s]*://jira\..*' || true)
 if [[ ! -z "$JIRA_LINK" ]]
 then
   echo 'Remove JIRA URLs from commit message'