mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
cleanup
This commit is contained in:
parent
559c595a18
commit
95ecf17ded
7
inxi
7
inxi
|
@ -6318,7 +6318,7 @@ print_system_data()
|
||||||
local host_name=$( hostname )
|
local host_name=$( hostname )
|
||||||
local current_kernel=$( uname -rm ) # | gawk '{print $1,$3,$(NF-1)}' )
|
local current_kernel=$( uname -rm ) # | gawk '{print $1,$3,$(NF-1)}' )
|
||||||
local distro="$( get_distro_data )"
|
local distro="$( get_distro_data )"
|
||||||
local tty_session=$( basename $(tty) | sed 's/[^0-9]*//g' )
|
local tty_session=$( basename "$( tty 2>/dev/null )" | sed 's/[^0-9]*//g' )
|
||||||
|
|
||||||
# this handles the different, shorter, irc colors strings embedded in variable data
|
# this handles the different, shorter, irc colors strings embedded in variable data
|
||||||
if [[ $B_RUNNING_IN_SHELL != 'true' ]];then
|
if [[ $B_RUNNING_IN_SHELL != 'true' ]];then
|
||||||
|
@ -6336,7 +6336,10 @@ print_system_data()
|
||||||
desktop_environment='N/A'
|
desktop_environment='N/A'
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
desktop_environment="tty $tty_session"
|
if [[ -n $tty_session ]];then
|
||||||
|
tty_session=" $tty_session"
|
||||||
|
fi
|
||||||
|
desktop_environment="tty$tty_session"
|
||||||
desktop_type='Console'
|
desktop_type='Console'
|
||||||
fi
|
fi
|
||||||
de_distro_string="${C1}$desktop_type${C2} $desktop_environment ${C1}Distro${C2} $distro"
|
de_distro_string="${C1}$desktop_type${C2} $desktop_environment ${C1}Distro${C2} $distro"
|
||||||
|
|
Loading…
Reference in a new issue