diff options
author | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2020-06-08 10:41:59 +0300 |
---|---|---|
committer | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2020-06-08 10:41:59 +0300 |
commit | 54c98228342043612ea83eaaf13ac13659c26295 (patch) | |
tree | d4e98a8963d6aad2ab048a07a87a91f1dd1e3fa6 /gitstatus.plugin.sh | |
parent | 9fd719c834910c9734b0def927cc079654943a8d (diff) |
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
Diffstat (limited to 'gitstatus.plugin.sh')
-rw-r--r-- | gitstatus.plugin.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gitstatus.plugin.sh b/gitstatus.plugin.sh index d44d8cd7..685e81a2 100644 --- a/gitstatus.plugin.sh +++ b/gitstatus.plugin.sh @@ -164,6 +164,9 @@ function gitstatus_start() { (( ! _gitstatus_bash_downloaded )) || return [[ "${GITSTATUS_AUTO_INSTALL:-1}" -ne 0 ]] || return + [[ "$_gitstatus_bash_daemon" == \ + "${GITSTATUS_CACHE_DIR:-${XDG_CACHE_HOME:-$HOME/.cache}/gitstatus}"/* ]] || return + set -- -f "$@" _gitstatus_bash_daemon= _gitstatus_bash_version= |