[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 258e1d69 1/4: Conditionalize an echo to /dev/
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 258e1d69 1/4: Conditionalize an echo to /dev/tty |
Date: |
Sun, 22 Jan 2023 12:39:52 -0500 (EST) |
branch: master
commit 258e1d69f017e93d70d3af9e77fec827e51f3eb9
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Conditionalize an echo to /dev/tty
Conditionalizing this is better than filtering it out.
---
nychthemeral_test.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nychthemeral_test.sh b/nychthemeral_test.sh
index ecb67cab..fa086b50 100755
--- a/nychthemeral_test.sh
+++ b/nychthemeral_test.sh
@@ -340,7 +340,7 @@ exec_prefix="$prefix/${LMI_COMPILER}_${LMI_TRIPLET}"
log_dir="$exec_prefix"/logs
mkdir --parents "$log_dir"
{
-printf 'toolchain: %s\n' "${LMI_COMPILER}_${LMI_TRIPLET}" > /dev/tty || true
+if tty -s; then printf 'toolchain: %s\n' "${LMI_COMPILER}_${LMI_TRIPLET}" >
/dev/tty; fi
# Cannot recursively check script on path determined at runtime, so
# a directive like 'source="$srcdir"' doesn't work.