diff options
-rwxr-xr-x | round-robin-notify.sh | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/round-robin-notify.sh b/round-robin-notify.sh index 3d0821eb..9921f34b 100755 --- a/round-robin-notify.sh +++ b/round-robin-notify.sh @@ -391,18 +391,20 @@ print_last_icommit_status () # Result stored in first_icommit_to_report global variable check_if_first_report() { - declare -g first_icommit_to_report=false - - if [ x"$change_kind" = x"single_commit" ]; then - local isubdir - isubdir=$(interesting_subdir "$changed_single_component" "$first_bad" \ - "$ci_project") - first_icommit_to_report=true - if [ -d "$icommits/$isubdir/$ci_config" ]; then - first_icommit_to_report=false - fi + declare -g first_icommit_to_report + + if [ x"$change_kind" != x"single_commit" ]; then + first_icommit_to_report=false + return fi + local isubdir + isubdir=$(interesting_subdir "$changed_single_component" "$first_bad" \ + "$ci_project") + first_icommit_to_report=true + if [ -d "$icommits/$isubdir/$ci_config" ]; then + first_icommit_to_report=false + fi } print_config() |