„gaboshlib/g_runcmd.bashfunc“ ändern
This commit is contained in:
parent
2d0c91979b
commit
18bd919a2e
@ -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 "$@:
|
||||
|
Loading…
Reference in New Issue
Block a user