1
0
Fork 0
pre-commit/testing/resources/stdout_stderr_repo/tty-check-entry
Daniel Baumann c0d06915b7
Adding upstream version 2.2.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-02-09 21:10:22 +01:00

11 lines
150 B
Bash
Executable file

#!/usr/bin/env bash
t() {
if [ -t "$1" ]; then
echo "$2: True"
else
echo "$2: False"
fi
}
t 0 stdin
t 1 stdout
t 2 stderr