Skip to content

Commit

Permalink
_command_exists()
Browse files Browse the repository at this point in the history
# Conflicts:
#	lib/helpers.bash
  • Loading branch information
gaelicWizard committed Sep 12, 2021
1 parent 0375e47 commit 51cc3eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/helpers.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 51cc3eb

Please sign in to comment.