Skip to content

Commit fe9ea0f

Browse files
committed
no color in die checker
1 parent 532080f commit fe9ea0f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/assert-no-die.bash

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ if [[ $# -lt 1 ]]; then
44
echo "at least one argument required" >&2
55
exit 1
66
fi
7-
occurrences="$(grep -H --line-number --color=always -P '\bdie\s*\(' "$@" | grep -v -P 'UnitySite::die\s*\(')" || true
7+
# --color=never because magit git output log doesn't support it
8+
occurrences="$(grep -H --color=never --line-number -P '\bdie\s*\(' "$@" | grep -v -P 'UnitySite::die\s*\(')" || true
89
if [ -n "$occurrences" ]; then
910
echo "die() is not allowed! use UnitySite::die() instead." >&2
1011
echo "$occurrences"

0 commit comments

Comments
 (0)