Distro: [Linux] Fix fallbacks not working

This commit is contained in:
Dylan Araps 2016-11-01 23:05:30 +11:00
parent 29ccbb2a31
commit b1b6226189

View file

@ -172,8 +172,8 @@ getdistro() {
esac
# Workarounds for distros that go against the os-release standard.
[ -z "$distro" ] && distro="$(awk '/BLAG/ {print $1; exit}' /etc/*ease /usr/lib/*ease)"
[ -z "$distro" ] && distro="$(awk -F'=' '{print $2}' /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)"
fi
distro="${distro//\"}"
distro="${distro//\'}"