Skip to content

Commit

Permalink
Merge pull request #92 from ryneeverett/fix-os-parameter-error
Browse files Browse the repository at this point in the history
gitstatus_start_impl: declare os variable.
  • Loading branch information
romkatv committed Jan 12, 2020
2 parents 6eeac54 + 749eb5d commit 9b55803
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gitstatus.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,8 @@ function gitstatus_start() {
}

(( daemon_pid == -1 )) || {
local daemon=${GITSTATUS_DAEMON:-} os
local os
local daemon=${GITSTATUS_DAEMON:-}
[[ -n $daemon ]] || {
os="$(uname -s)" && [[ -n $os ]]
[[ $os != Linux || "$(uname -o)" != Android ]] || os=Android
Expand Down

0 comments on commit 9b55803

Please sign in to comment.