We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 532080f commit fe9ea0fCopy full SHA for fe9ea0f
test/assert-no-die.bash
@@ -4,7 +4,8 @@ if [[ $# -lt 1 ]]; then
4
echo "at least one argument required" >&2
5
exit 1
6
fi
7
-occurrences="$(grep -H --line-number --color=always -P '\bdie\s*\(' "$@" | grep -v -P 'UnitySite::die\s*\(')" || true
+# --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
9
if [ -n "$occurrences" ]; then
10
echo "die() is not allowed! use UnitySite::die() instead." >&2
11
echo "$occurrences"
0 commit comments