output tu stderr for pipes

This commit is contained in:
olli committed 2022-12-02 15:14:25 +01:00
1 parent 530d1ae511
commit f5e8d0d41d
1 file changed
+1 -1
+1 -1
View File
@@ -2,7 +2,7 @@
function g_runcmd {
set -o pipefail
g_echo "running $@"
>&2 echo "running $@"
$@ 2>&1 | tee $g_tmp/g_runcmd-output
g_runcmd_exitcode=$?