fixes illegal option message from uname on macOs
This commit is contained in:
parent
e028cf5c90
commit
635663bdd2
|
@ -275,7 +275,9 @@ function gitstatus_start() {
|
|||
setopt xtrace
|
||||
}
|
||||
|
||||
local os && { [[ $(uname -o) == Android ]] && os=Android || os=$(uname -s) } && [[ -n $os ]]
|
||||
# uname -o fails on macOS, so suppress it's stderr output as that case
|
||||
# will be caught by uname -s
|
||||
local os && { [[ $(uname -o 2>/dev/null) == Android ]] && os=Android || os=$(uname -s) } && [[ -n $os ]]
|
||||
local arch && arch=$(uname -m) && [[ -n $arch ]]
|
||||
|
||||
local daemon=${GITSTATUS_DAEMON:-$dir/bin/gitstatusd-${os:l}-${arch:l}}
|
||||
|
|
Loading…
Reference in New Issue