diff --git a/xbps-src/shutils/common_funcs.sh b/xbps-src/shutils/common_funcs.sh index 3aed785e4fa..9328ebefde2 100644 --- a/xbps-src/shutils/common_funcs.sh +++ b/xbps-src/shutils/common_funcs.sh @@ -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