distro: Remove broken distro lines
This commit is contained in:
parent
4f89361e50
commit
86372fe6a8
1 changed files with 0 additions and 5 deletions
5
neofetch
5
neofetch
|
@ -924,11 +924,6 @@ get_distro() {
|
||||||
"tiny") distro="${NAME:-${DISTRIB_ID:-${TAILS_PRODUCT_NAME}}}" ;;
|
"tiny") distro="${NAME:-${DISTRIB_ID:-${TAILS_PRODUCT_NAME}}}" ;;
|
||||||
"off") distro="${PRETTY_NAME:-${DISTRIB_DESCRIPTION}} ${UBUNTU_CODENAME}" ;;
|
"off") distro="${PRETTY_NAME:-${DISTRIB_DESCRIPTION}} ${UBUNTU_CODENAME}" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Workarounds for distros that go against the os-release standard.
|
|
||||||
[[ -z "${distro// }" ]] && distro="$(awk '/BLAG/ {print $1; exit}')" "${files[@]}"
|
|
||||||
[[ -z "${distro// }" ]] && distro="$(awk -F'=' '{print $2; exit}')" "${files[@]}"
|
|
||||||
|
|
||||||
else
|
else
|
||||||
for release_file in /etc/*-release; do
|
for release_file in /etc/*-release; do
|
||||||
distro+="$(< "$release_file")"
|
distro+="$(< "$release_file")"
|
||||||
|
|
Loading…
Reference in a new issue