aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2024-04-29 11:55:32 -0500
committerRob Landley <rob@landley.net>2024-04-29 11:55:32 -0500
commit6aaeb385b2e6d3efb6d934d6fdd1ca23f4646b86 (patch)
treee264c1007ffa9af1ed24cf9df64e48ff664cdd75
parentda1474b1589ae93167112234799faa8c77898e4c (diff)
downloadtoybox-6aaeb385b2e6d3efb6d934d6fdd1ca23f4646b86.tar.gz
If /dev/tty was never associated, writing to it produces an error.
(That's why ; instead of && there, but suppress the message too.)
-rwxr-xr-xmkroot/mkroot.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkroot/mkroot.sh b/mkroot/mkroot.sh
index 227dbb3c..b57eeeb0 100755
--- a/mkroot/mkroot.sh
+++ b/mkroot/mkroot.sh
@@ -17,7 +17,7 @@ done
: ${TOP:=$PWD/root} ${BUILD:=$TOP/build} ${LOG:=$BUILD/log}
: ${AIRLOCK:=$BUILD/airlock} ${CCC:=$PWD/ccc} ${PKGDIR:=$PWD/mkroot/packages}
-announce() { printf "\033]2;$CROSS $*\007" >/dev/tty; printf "\n=== $*\n";}
+announce() { printf "\033]2;$CROSS $*\007" 2>/dev/null >/dev/tty; printf "\n=== $*\n";}
die() { echo "$@" >&2; exit 1; }
# ----- Are we cross compiling (via CROSS_COMPILE= or CROSS=)