run_func: use simply 'type foo', -t is a bash extension.

--HG--
extra : convert_revision : 8a94c0a961f4819bfada61823158c81965d31908
This commit is contained in:
Juan RP 2010-04-21 16:48:58 +02:00
parent 66d275cec7
commit 8536af44ef

View file

@ -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