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 fe9ea0f commit 2ed84d9Copy full SHA for 2ed84d9
test/assert-no-die.bash
@@ -1,13 +1,13 @@
1
#!/bin/bash
2
set -euo pipefail
3
if [[ $# -lt 1 ]]; then
4
- echo "at least one argument required" >&2
+ echo "at least one argument required"
5
exit 1
6
fi
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
9
if [ -n "$occurrences" ]; then
10
- echo "die() is not allowed! use UnitySite::die() instead." >&2
+ echo "die() is not allowed! use UnitySite::die() instead."
11
echo "$occurrences"
12
13
0 commit comments