Distro: Remove lsb_release block
This commit is contained in:
parent
8d98c4fbde
commit
e3feb32a69
1 changed files with 1 additions and 9 deletions
10
neofetch
10
neofetch
|
@ -138,14 +138,6 @@ get_distro() {
|
||||||
*) distro="Red Star OS $(awk -F'[^0-9*]' '$0=$2' /etc/redstar-release)"
|
*) distro="Red Star OS $(awk -F'[^0-9*]' '$0=$2' /etc/redstar-release)"
|
||||||
esac
|
esac
|
||||||
|
|
||||||
elif type -p lsb_release >/dev/null; then
|
|
||||||
case "$distro_shorthand" in
|
|
||||||
"on") lsb_flags="-sir" ;;
|
|
||||||
"tiny") lsb_flags="-si" ;;
|
|
||||||
*) lsb_flags="-sd" ;;
|
|
||||||
esac
|
|
||||||
distro="$(lsb_release $lsb_flags)"
|
|
||||||
|
|
||||||
elif type -p guix >/dev/null; then
|
elif type -p guix >/dev/null; then
|
||||||
distro="GuixSD"
|
distro="GuixSD"
|
||||||
|
|
||||||
|
@ -161,7 +153,7 @@ get_distro() {
|
||||||
|
|
||||||
else
|
else
|
||||||
# Source the os-release file
|
# Source the os-release file
|
||||||
for file in /etc/os-release /etc/*ease /usr/lib/*ease; do
|
for file in /etc/os-release /usr/lib/os-release /etc/*release /usr/lib/*release; do
|
||||||
source "$file" && break
|
source "$file" && break
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue