YETUS-598. jira_locate_patch does not work after the update of ASF JIRA. Signed-off-by: Allen Wittenauer <[email protected]>
Project: http://git-wip-us.apache.org/repos/asf/yetus/repo Commit: http://git-wip-us.apache.org/repos/asf/yetus/commit/a74b317e Tree: http://git-wip-us.apache.org/repos/asf/yetus/tree/a74b317e Diff: http://git-wip-us.apache.org/repos/asf/yetus/diff/a74b317e Branch: refs/heads/YETUS-585 Commit: a74b317e63ca727e76b7a0416d807a4f9e33cbdf Parents: 34b1ff7 Author: Akira Ajisaka <[email protected]> Authored: Mon Jan 15 18:06:50 2018 +0900 Committer: Allen Wittenauer <[email protected]> Committed: Mon Jan 15 10:06:33 2018 -0800 ---------------------------------------------------------------------- precommit/test-patch.d/jira.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/yetus/blob/a74b317e/precommit/test-patch.d/jira.sh ---------------------------------------------------------------------- diff --git a/precommit/test-patch.d/jira.sh b/precommit/test-patch.d/jira.sh index eedb1ff..aaeb714 100755 --- a/precommit/test-patch.d/jira.sh +++ b/precommit/test-patch.d/jira.sh @@ -184,7 +184,8 @@ function jira_locate_patch # the assumption here is that attachment id's are given in an # ascending order. so bigger # == newer file #shellcheck disable=SC2016 - ${AWK} 'match($0,"/secure/attachment/[0-9]*/[^\"]*"){print substr($0,RSTART,RLENGTH)}' "${PATCH_DIR}/jira" \ + tr '>' '\n' < "${PATCH_DIR}/jira" \ + | ${AWK} 'match($0,"/secure/attachment/[0-9]*/[^\"]*"){print substr($0,RSTART,RLENGTH)}' \ | ${GREP} -v -e 'htm[l]*$' \ | ${SED} -e 's,[ ]*$,,g' \ | sort -n -r -k4 -t/ \
