1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-02-15 09:28:26 +00:00
bat/tests/scripts/stderr1.sh

15 lines
203 B
Bash
Raw Normal View History

2024-01-05 23:20:47 -05:00
#!/bin/bash
## test for issue 2561
OUTPUT=$(mktemp)
BAT=bat
code=$($BAT /tmp 2> $OUTPUT; cat $OUTPUT | grep error; echo $?)
if [[ $code == 1 ]]; then
echo "stderr test fsil"
exit 1
fi
exit 0