Skip to content

Commit cd7a047

Browse files
committed
Useless use of cat
1 parent 306a211 commit cd7a047

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bash_unit

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ fail() {
3131
local stderr=$3
3232

3333
notify_test_failed $__bash_unit_current_test__ "$message"
34-
[[ ! -z $stdout ]] && [ -s $stdout ] && cat $stdout | notify_stdout
35-
[[ ! -z $stderr ]] && [ -s $stderr ] && cat $stderr | notify_stderr
34+
[[ ! -z $stdout ]] && [ -s $stdout ] && notify_stdout < $stdout
35+
[[ ! -z $stderr ]] && [ -s $stderr ] && notify_stderr < $stderr
3636

3737
stacktrace | notify_stack
3838
exit 1

0 commit comments

Comments
 (0)