diff --git a/lib/helpers.bash b/lib/helpers.bash index e7ece3f6fe..a1a86d45fb 100644 --- a/lib/helpers.bash +++ b/lib/helpers.bash @@ -41,7 +41,7 @@ function _binary_exists() { _example '$ _binary_exists ls && echo exists' _group 'lib' local msg="${2:-Binary '$1' does not exist}" - if type -p "$1" > /dev/null; then + if type -P "$1" > /dev/null; then return 0 else _log_debug "$msg"