From 51cc3ebfe52a84bc3bd2e12b1f5dbe5cadaf547d Mon Sep 17 00:00:00 2001 From: John D Pell Date: Wed, 8 Sep 2021 15:16:26 -0700 Subject: [PATCH] _command_exists() # Conflicts: # lib/helpers.bash --- lib/helpers.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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