nicer output
This commit is contained in:
parent
d15795e0ab
commit
2d0c91979b
@ -6,12 +6,15 @@ function g_runcmd {
|
||||
|
||||
if egrep -q -i "warn|error|fail|fatal" $g_tmp/g_runcmd-output
|
||||
then
|
||||
g_echo_warn "$@: $(cat $g_tmp/g_runcmd-output)"
|
||||
g_echo_warn "$@:
|
||||
$(cat $g_tmp/g_runcmd-output)"
|
||||
elif [ $g_runcmd_exitcode -eq 0 ]
|
||||
then
|
||||
g_echo_ok "$@: $(cat $g_tmp/g_runcmd-output)"
|
||||
g_echo_ok "$@:
|
||||
$(cat $g_tmp/g_runcmd-output)"
|
||||
else
|
||||
g_echo_error "$@: $(cat $g_tmp/g_runcmd-output)"
|
||||
g_echo_error "$@:
|
||||
$(cat $g_tmp/g_runcmd-output)"
|
||||
fi
|
||||
return $g_runcmd_exitcode
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user