diff options
-rwxr-xr-x | chili_change_detector | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/chili_change_detector b/chili_change_detector index 304cfb3..08043b7 100755 --- a/chili_change_detector +++ b/chili_change_detector @@ -109,6 +109,7 @@ function slide_and_write for key in "${!bugs[@]}" do + key=$( sed 's/([^)]\+)//' <<< "${i}" ) old_bugs[${key}]=${bugs[${key}]} done @@ -154,19 +155,20 @@ do # and we know that this is a creation, not a change. for i in "${!bugs[@]}" do + ii=$( sed 's/([^)]\+)//' <<< "${i}" ) # If this bug is new since last time. - if [[ -z ${old_bugs[${i}]} ]] + if [[ -z ${old_bugs[${ii}]} ]] then # Check the log of seen issues to find out if this is a creation or # a change. - if grep "${i%%🐵*}" "${seen_issues_log}" > /dev/null 2> /dev/null + if grep "${ii%%🐵*}" "${seen_issues_log}" > /dev/null 2> /dev/null then creation_or_change="change" else creation_or_change="creation" # Add this issue to the log. - echo "${i%%🐵*}" >> "${seen_issues_log}" + echo "${ii%%🐵*}" >> "${seen_issues_log}" fi real_title="${i%%🐵*}" |