[meta] use uname -a
to prevent OS conflicts
Fix `uname` calls with `-o` parameter, as this is not BSD compatible. As per @Eriner, use `uname -a` instead as a "catch-all" parameter. Fixes #75, Closes #79
This commit is contained in:
parent
d2458b1a8f
commit
695d46284c
3 changed files with 4 additions and 4 deletions
|
@ -32,10 +32,10 @@ Deleting old logs now..."
|
|||
fi
|
||||
|
||||
# get some basic system information (kernel and zsh version)
|
||||
print "Zsh version:
|
||||
print "Zsh version:
|
||||
$(zsh --version)
|
||||
Kernel information:
|
||||
$(uname -mosr)
|
||||
$(uname -a)
|
||||
fpath info:
|
||||
${fpath}" >! /tmp/ztrace/sysinfo
|
||||
|
||||
|
|
|
@ -6,4 +6,4 @@ cd ${ZDOTDIR:-${HOME}}/.zim
|
|||
|
||||
print "Zim commit ref: $(command git rev-parse --short HEAD)"
|
||||
print "Zsh version: $(command zsh --version)"
|
||||
print "System info: $(command uname -mosr)"
|
||||
print "System info: $(command uname -a)"
|
||||
|
|
|
@ -30,7 +30,7 @@ cd ${ZDOTDIR:-${HOME}}/.zim
|
|||
git_dirty=$(command git status --porcelain 2>/dev/null | tail -n1)
|
||||
git_ref=$(command git rev-parse --short HEAD)
|
||||
zsh_version=$(zsh --version)
|
||||
operating_sys=$(uname -mosr)
|
||||
operating_sys=$(uname -a)
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue