File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 54
54
# default (gray) by default
55
55
# look for pass/fail/error in the title
56
56
style=$( evaluate " $( jq -r ' .params.style // "default"' < " ${payload} " ) " )
57
- [[ " ${title} " =~ (pass| succeed| success) ]] && style=" good"
58
- [[ " ${title} " =~ (fail) ]] && style=" attention"
59
- [[ " ${title} " =~ (error) ]] && style=" warning"
57
+ [[ " ${title,, } " =~ (pass| succeed| success) ]] && style=" good"
58
+ [[ " ${title,, } " =~ (fail) ]] && style=" attention"
59
+ [[ " ${title,, } " =~ (error) ]] && style=" warning"
60
60
# or in the text_output if we didn't find it in the title
61
- [[ " ${style} " == " default" ]] && [[ " ${text_output} " =~ (pass| succeed| success) ]] && style=" good"
62
- [[ " ${style} " == " default" ]] && [[ " ${text_output} " =~ (fail) ]] && style=" attention"
63
- [[ " ${style} " == " default" ]] && [[ " ${text_output} " =~ (error) ]] && style=" warning"
61
+ [[ " ${style} " == " default" ]] && [[ " ${text_output,, } " =~ (pass| succeed| success) ]] && style=" good"
62
+ [[ " ${style} " == " default" ]] && [[ " ${text_output,, } " =~ (fail) ]] && style=" attention"
63
+ [[ " ${style} " == " default" ]] && [[ " ${text_output,, } " =~ (error) ]] && style=" warning"
64
64
65
65
DIR=" ${BASH_SOURCE%/* } "
66
66
if [[ ! -d " $DIR " ]]; then DIR=" $PWD " ; fi
You can’t perform that action at this time.
0 commit comments