run_func: use simply 'type foo', -t is a bash extension.
--HG-- extra : convert_revision : 8a94c0a961f4819bfada61823158c81965d31908
This commit is contained in:
parent
66d275cec7
commit
8536af44ef
|
@ -32,8 +32,7 @@ run_func()
|
|||
|
||||
[ -z "$func" ] && return 1
|
||||
|
||||
type -t $func | grep -q 'function'
|
||||
if [ $? -eq 0 ]; then
|
||||
if $(type $func | grep -q 'function'); then
|
||||
$func
|
||||
return $?
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue