Distro: Get $machine_arch case outside the if statement
So if $os_arch=off, then the machine_arch will still be populated.
This commit is contained in:
parent
36bae0815e
commit
681208fa21
1 changed files with 5 additions and 5 deletions
10
neofetch
10
neofetch
|
@ -221,12 +221,12 @@ get_distro() {
|
|||
[[ -z "$distro" ]] && distro="$os (Unknown)"
|
||||
|
||||
# Get OS architecture.
|
||||
if [[ "$os_arch" == "on" ]]; then
|
||||
case "$os" in
|
||||
"Solaris" | "AIX" | "BSD" | "Haiku" | "IRIX") machine_arch="$(uname -p)" ;;
|
||||
*) machine_arch="$(uname -m)" ;;
|
||||
case "$os" in
|
||||
"Solaris" | "AIX" | "BSD" | "Haiku" | "IRIX") machine_arch="$(uname -p)" ;;
|
||||
*) machine_arch="$(uname -m)" ;;
|
||||
|
||||
esac
|
||||
esac
|
||||
if [[ "$os_arch" == "on" ]]; then
|
||||
distro+=" ${machine_arch}"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue