lib: Log in case _command_exists fails

This commit is contained in:
Noah Gorny
2020-06-25 01:36:12 +03:00
parent 6a4142ced7
commit 5daecc9381

View File

@@ -21,7 +21,7 @@ function _command_exists ()
_param '1: command to check' _param '1: command to check'
_example '$ _command_exists ls && echo exists' _example '$ _command_exists ls && echo exists'
_group 'lib' _group 'lib'
type "$1" &> /dev/null ; type "$1" &> /dev/null || (_log_warning "Command $1 does not exist!" && return 1) ;
} }
function _make_reload_alias() { function _make_reload_alias() {