„gaboshlib/g_runcmd.bashfunc“ ändern

This commit is contained in:
olli 2022-12-01 13:10:06 +01:00
parent 2d0c91979b
commit 18bd919a2e

View File

@ -1,9 +1,13 @@
#!/bin/bash
function g_runcmd {
g_echo "running $@"
$@ >$g_tmp/g_runcmd-output 2>&1
g_runcmd_exitcode=$?
g_echo "running $@"
if egrep -q -i "warn|error|fail|fatal" $g_tmp/g_runcmd-output
then
g_echo_warn "$@: