diff --git a/lib/helpers.bash b/lib/helpers.bash index d4562eb6da..0fad1af264 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"