diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2020-03-11 13:06:51 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2020-03-11 13:06:51 +0300 |
commit | 6d57d00f3249431c5a3d9e48931dd17f12f4f4de (patch) | |
tree | 1413e91791a57dd52881df591495d5bc17706c89 /gitstatus | |
parent | 29cac7bdfbd38650c4a8893414f7e58e0dd70a3b (diff) |
pull upstream changes from gitstatus
Diffstat (limited to 'gitstatus')
-rw-r--r-- | gitstatus/gitstatus.plugin.zsh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gitstatus/gitstatus.plugin.zsh b/gitstatus/gitstatus.plugin.zsh index 8cfa008e..32eec42c 100644 --- a/gitstatus/gitstatus.plugin.zsh +++ b/gitstatus/gitstatus.plugin.zsh @@ -504,9 +504,8 @@ function gitstatus_start() { local -aU os case $kernel in linux) - os=("${(L)$(uname -o)}") || return - [[ -n $os[1] ]] || return - [[ $os[1] == android ]] || os[1]=linux + os=("${(L)$(uname -o 2>/dev/null)}") || os=() + [[ $os[1] == android ]] || os=(linux) ;; cygwin_nt-*) os=($kernel cygwin_nt-10.0);; mingw|msys) os=($kernel msys_nt-10.0);; |