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
5
inxi
5
inxi
|
@ -6318,7 +6318,7 @@ print_system_data()
|
|||
local host_name=$( hostname )
|
||||
local current_kernel=$( uname -rm ) # | gawk '{print $1,$3,$(NF-1)}' )
|
||||
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
|
||||
if [[ $B_RUNNING_IN_SHELL != 'true' ]];then
|
||||
|
@ -6336,6 +6336,9 @@ print_system_data()
|
|||
desktop_environment='N/A'
|
||||
fi
|
||||
else
|
||||
if [[ -n $tty_session ]];then
|
||||
tty_session=" $tty_session"
|
||||
fi
|
||||
desktop_environment="tty$tty_session"
|
||||
desktop_type='Console'
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue