diff --git a/lgsm/functions/info_distro.sh b/lgsm/functions/info_distro.sh index 8e7bea670..85801a70d 100644 --- a/lgsm/functions/info_distro.sh +++ b/lgsm/functions/info_distro.sh @@ -15,6 +15,8 @@ arch=$(uname -m) kernel=$(uname -r) if [ -n "$(command -v lsb_release)" ]; then distroname=$(lsb_release -s -d) +elif [ -f "/etc/os-release" ]; then + distroname=$(grep PRETTY_NAME /etc/os-release | sed 's/PRETTY_NAME=//g' | tr -d '="') elif [ -f "/etc/debian_version" ]; then distroname="Debian $(cat /etc/debian_version)" elif [ -f "/etc/redhat-release" ]; then @@ -23,7 +25,7 @@ else distroname="$(uname -s) $(uname -r)" fi -distroversion=$(grep VERSION_ID /etc/os-release |tr -cd '[:digit:]') +distroversion=$(grep VERSION_ID /etc/os-release | tr -cd '[:digit:]') ## Glibc version # e.g: 1.17 @@ -33,7 +35,7 @@ glibcversion="$(ldd --version | sed -n '1s/.* //p')" # e.g: tmux 1.6 if [ -z "$(command -v tmux)" ]; then tmuxv="${red}NOT INSTALLED!${default}" -elif [ "$(tmux -V|sed "s/tmux //"|sed -n '1 p'|tr -cd '[:digit:]')" -lt "16" ]; then +elif [ "$(tmux -V|sed "s/tmux //" | sed -n '1 p' | tr -cd '[:digit:]')" -lt "16" ]; then tmuxv="$(tmux -V) (>= 1.6 required for console log)" else tmuxv=$(tmux -V)