Squashed 'gitstatus/' changes from 643091154..ec9c39499

ec9c39499 don't download gitstatusd if there is a bad version in usrbin

git-subtree-dir: gitstatus
git-subtree-split: ec9c39499a96ea8b181db15c76df5089959d3111
pull/829/head
Roman Perepelitsa 4 years ago
parent 9fd719c834
commit 54c9822834

@ -164,6 +164,9 @@ function gitstatus_start() {
(( ! _gitstatus_bash_downloaded )) || return (( ! _gitstatus_bash_downloaded )) || return
[[ "${GITSTATUS_AUTO_INSTALL:-1}" -ne 0 ]] || return [[ "${GITSTATUS_AUTO_INSTALL:-1}" -ne 0 ]] || return
[[ "$_gitstatus_bash_daemon" == \
"${GITSTATUS_CACHE_DIR:-${XDG_CACHE_HOME:-$HOME/.cache}/gitstatus}"/* ]] || return
set -- -f "$@" set -- -f "$@"
_gitstatus_bash_daemon= _gitstatus_bash_daemon=
_gitstatus_bash_version= _gitstatus_bash_version=

@ -414,6 +414,9 @@ function _gitstatus_daemon"${1:-}"() {
(( ! _gitstatus_zsh_downloaded )) || return (( ! _gitstatus_zsh_downloaded )) || return
[[ ${GITSTATUS_AUTO_INSTALL:-1} == (|-|+)<1-> ]] || return [[ ${GITSTATUS_AUTO_INSTALL:-1} == (|-|+)<1-> ]] || return
[[ $_gitstatus_zsh_daemon ==
${GITSTATUS_CACHE_DIR:-${XDG_CACHE_HOME:-$HOME/.cache}/gitstatus}/* ]] || return
set -- -f "$@" set -- -f "$@"
_gitstatus_zsh_daemon= _gitstatus_zsh_daemon=
_gitstatus_zsh_version= _gitstatus_zsh_version=

Loading…
Cancel
Save