Fix a distro detection bug when '/etc/*ease' doesn't use quotes
This commit is contained in:
parent
766569fb10
commit
399747a5e2
1 changed files with 2 additions and 1 deletions
3
neofetch
3
neofetch
|
@ -464,7 +464,8 @@ case "$os" in
|
|||
distro="$(crux)"
|
||||
|
||||
else
|
||||
distro="$(awk -F 'NAME="|"' '/^NAME=/ {printf $2}' /etc/*ease)"
|
||||
distro="$(awk -F 'NAME=' '/^NAME=/ {printf $2}' /etc/*ease)"
|
||||
distro=${distro//\"}
|
||||
|
||||
# Workaround for distros that store the value differently.
|
||||
[ -z "$distro" ] && distro="$(awk -F 'TAILS_PRODUCT_NAME="|"' '/^TAILS_PRODUCT_NAME=/ {printf $2}' /etc/*ease)"
|
||||
|
|
Loading…
Reference in a new issue