From 6d57d00f3249431c5a3d9e48931dd17f12f4f4de Mon Sep 17 00:00:00 2001 From: romkatv Date: Wed, 11 Mar 2020 11:06:51 +0100 Subject: [PATCH] pull upstream changes from gitstatus --- gitstatus/gitstatus.plugin.zsh | 5 ++--- 1 file 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);;