completion/travis: use `_command_exists`
parent
c98424308a
commit
ef0c64322f
|
|
@ -1,5 +1,10 @@
|
||||||
if [[ -x "$(which travis)" ]]; then
|
# shellcheck shell=bash
|
||||||
__TRAVIS_COMPLETION_SCRIPT="${TRAVIS_CONFIG_PATH:-${HOME}/.travis}/travis.sh"
|
|
||||||
[[ -f "${__TRAVIS_COMPLETION_SCRIPT}" ]] && source "${__TRAVIS_COMPLETION_SCRIPT}"
|
if _command_exists travis
|
||||||
|
then
|
||||||
|
if [[ -s "${__TRAVIS_COMPLETION_SCRIPT:=${TRAVIS_CONFIG_PATH:-${HOME}/.travis}/travis.sh}" ]]
|
||||||
|
then
|
||||||
|
source "${__TRAVIS_COMPLETION_SCRIPT}"
|
||||||
|
fi
|
||||||
unset __TRAVIS_COMPLETION_SCRIPT
|
unset __TRAVIS_COMPLETION_SCRIPT
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue