aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvg <vg@devys.org>2019-01-29 22:46:30 +0100
committervg <vg@devys.org>2019-01-29 22:46:30 +0100
commitcc68421645a3cd28dcf48a045845c13aa0a830f0 (patch)
tree878299daed9f4d2d896d7b171013bf330889f731
parent5b1dd513482a7cead867628f130b7d559c535ad6 (diff)
downloadscripts-cc68421645a3cd28dcf48a045845c13aa0a830f0.tar.gz
scripts-cc68421645a3cd28dcf48a045845c13aa0a830f0.tar.bz2
scripts-cc68421645a3cd28dcf48a045845c13aa0a830f0.zip
input is piped purposely preventing read to a question, redirect tty to answer
-rwxr-xr-xscripts/help-me.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/help-me.bash b/scripts/help-me.bash
index 1dd65ed..cc7503f 100755
--- a/scripts/help-me.bash
+++ b/scripts/help-me.bash
@@ -331,7 +331,7 @@ main()
{
# log
local logfile="$(mktemp --tmpdir --suffix=.log help.XXXXXXXXXX)"
- exec > >(tee "$logfile") 2>&1
+ exec > >(tee "$logfile") 2>&1 </dev/tty
echo_notice "logfile: $logfile"
# global var tmpdir