Distro: [Linux] Fix incorrect quoting
This commit is contained in:
parent
b1b6226189
commit
dcdf6190c8
1 changed files with 2 additions and 2 deletions
4
neofetch
4
neofetch
|
@ -172,8 +172,8 @@ getdistro() {
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Workarounds for distros that go against the os-release standard.
|
# Workarounds for distros that go against the os-release standard.
|
||||||
[ -z "$(trim $distro")" ] && distro="$(awk '/BLAG/ {print $1; exit}' /etc/*ease /usr/lib/*ease)"
|
[ -z "$(trim "$distro")" ] && distro="$(awk '/BLAG/ {print $1; exit}' /etc/*ease /usr/lib/*ease)"
|
||||||
[ -z "$(trim $distro")" ] && distro="$(awk -F'=' '{print $2}' /etc/*ease /usr/lib/*ease)"
|
[ -z "$(trim "$distro")" ] && distro="$(awk -F'=' '{print $2}' /etc/*ease /usr/lib/*ease)"
|
||||||
fi
|
fi
|
||||||
distro="${distro//\"}"
|
distro="${distro//\"}"
|
||||||
distro="${distro//\'}"
|
distro="${distro//\'}"
|
||||||
|
|
Loading…
Reference in a new issue