diff --git a/lib/helpers.bash b/lib/helpers.bash index 791b4f59f0..ec093b7ed2 100644 --- a/lib/helpers.bash +++ b/lib/helpers.bash @@ -26,7 +26,7 @@ function _command_exists () _example '$ _command_exists ls && echo exists' _group 'lib' local msg="${2:-Command '$1' does not exist\!}" - if type "$1" &> /dev/null + if type -t "$1" &> /dev/null then return "$?" else