summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2018-11-23 19:55:27 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-11-23 20:02:55 +0100
commitacad357b5531f9c935b24f3514090c379255fb83 (patch)
treedf73cb5d265783ce346cdc99d3d1d7e24d7595a6 /scripts
parent4dadb4840bbd3e409597af108e960783780af0ed (diff)
downloadptxdist-acad357b5531f9c935b24f3514090c379255fb83.tar.gz
ptxdist-acad357b5531f9c935b24f3514090c379255fb83.tar.xz
ptxd_make_log: redirect stdin to /dev/null for -q
This ensures that nothing waits for user input. Any output that requests the input will not be visible anyways. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/libptxdist.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/libptxdist.sh b/scripts/libptxdist.sh
index 5661cfa3a..e386137a1 100644
--- a/scripts/libptxdist.sh
+++ b/scripts/libptxdist.sh
@@ -191,6 +191,8 @@ ptxd_make_log() {(
# stdout and logfile
exec {logout}> >(tee -a "${PTX_LOGFILE}")
else
+ # no user input
+ exec < /dev/null
# logfile only
exec {logout}>> "${PTX_LOGFILE}"
fi