lib: Log in case _command_exists fails

pull/1628/head
Noah Gorny 2020-06-25 01:36:12 +03:00
parent 6a4142ced7
commit 5daecc9381
1 changed files with 1 additions and 1 deletions

View File

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