summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2020-03-11 13:06:51 +0300
committerromkatv <roman.perepelitsa@gmail.com>2020-03-11 13:06:51 +0300
commit6d57d00f3249431c5a3d9e48931dd17f12f4f4de (patch)
tree1413e91791a57dd52881df591495d5bc17706c89
parent29cac7bdfbd38650c4a8893414f7e58e0dd70a3b (diff)
pull upstream changes from gitstatus
-rw-r--r--gitstatus/gitstatus.plugin.zsh5
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);;