From cace3a591d2dd2612b906ca0c07e03c436c7f82e Mon Sep 17 00:00:00 2001 From: John D Pell Date: Thu, 9 Sep 2021 16:17:10 -0700 Subject: [PATCH] main: use `_command_exists` Addresses bash-it/bash-it#1632 --- bash_it.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash_it.sh b/bash_it.sh index 679ffdaf..215c33c7 100755 --- a/bash_it.sh +++ b/bash_it.sh @@ -145,7 +145,7 @@ if [ -e "$HOME/.jekyllconfig" ]; then fi # BASH_IT_RELOAD_LEGACY is set. -if ! command -v reload &> /dev/null && [ -n "${BASH_IT_RELOAD_LEGACY:-}" ]; then +if ! _command_exists reload && [[ -n "${BASH_IT_RELOAD_LEGACY:-}" ]]; then case $OSTYPE in darwin*) alias reload='source ~/.bash_profile'