mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-13 20:22:11 +00:00
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:
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user