Code Review
/
releng
/
global-jjb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
grep: DO NOT return exit code 1 on no match
[releng/global-jjb.git]
/
shell
/
git-validate-jira-urls.sh
diff --git
a/shell/git-validate-jira-urls.sh
b/shell/git-validate-jira-urls.sh
index
d44fec9
..
51d5132
100644
(file)
--- a/
shell/git-validate-jira-urls.sh
+++ b/
shell/git-validate-jira-urls.sh
@@
-15,7
+15,7
@@
set -e -o pipefail
set +u
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'
if [[ ! -z "$JIRA_LINK" ]]
then
echo 'Remove JIRA URLs from commit message'