Skip to content

Commit cace3a5

Browse files
committed
main: use _command_exists
Addresses #1632
1 parent 8e16938 commit cace3a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bash_it.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ if [ -e "$HOME/.jekyllconfig" ]; then
145145
fi
146146

147147
# BASH_IT_RELOAD_LEGACY is set.
148-
if ! command -v reload &> /dev/null && [ -n "${BASH_IT_RELOAD_LEGACY:-}" ]; then
148+
if ! _command_exists reload && [[ -n "${BASH_IT_RELOAD_LEGACY:-}" ]]; then
149149
case $OSTYPE in
150150
darwin*)
151151
alias reload='source ~/.bash_profile'

0 commit comments

Comments
 (0)