mirror of
https://github.com/sharkdp/bat.git
synced 2025-09-08 06:12:27 +01:00
Add test.
This commit is contained in:
14
tests/scripts/stderr1.sh
Executable file
14
tests/scripts/stderr1.sh
Executable file
@@ -0,0 +1,14 @@
|
|||||||
|
#!/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
|
Reference in New Issue
Block a user