Skip to content

Commit 2ed84d9

Browse files
committed
dont print to stderr
1 parent fe9ea0f commit 2ed84d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/assert-no-die.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#!/bin/bash
22
set -euo pipefail
33
if [[ $# -lt 1 ]]; then
4-
echo "at least one argument required" >&2
4+
echo "at least one argument required"
55
exit 1
66
fi
77
# --color=never because magit git output log doesn't support it
88
occurrences="$(grep -H --color=never --line-number -P '\bdie\s*\(' "$@" | grep -v -P 'UnitySite::die\s*\(')" || true
99
if [ -n "$occurrences" ]; then
10-
echo "die() is not allowed! use UnitySite::die() instead." >&2
10+
echo "die() is not allowed! use UnitySite::die() instead."
1111
echo "$occurrences"
1212
exit 1
1313
fi

0 commit comments

Comments
 (0)