mirror of
https://github.com/smxi/inxi.git
synced 2025-01-19 08:57:57 +00:00
fixed some bugs in get client data
This commit is contained in:
parent
3cb1cc8d1a
commit
d019d7b7c5
9
inxi
9
inxi
|
@ -598,13 +598,6 @@ get_start_client()
|
|||
irc_client_path=$( readlink /proc/$PPID/exe )
|
||||
irc_client_path_lower=$( tr '[:upper:]' '[:lower:]' <<< $irc_client_path )
|
||||
# from sidux infobash, handle bad detection of shell; Horst Tritremmel <hjt at sidux.com>
|
||||
echo irc_client_path $irc_client_path
|
||||
echo irc_client_path_lower $irc_client_path_lower
|
||||
echo pspppid:$(ps -p $PPID -o ppid --no-headers | sed 's/ //g'):
|
||||
echo irc_client_path_lower::: ${irc_client_path_lower##*/}
|
||||
[[ ${irc_client_path_lower##*/} =~ dash|bash|sh ]] && echo yes || echo no
|
||||
exit
|
||||
|
||||
# note: do NOT put into '' or "" the dash|bash stuff, otherwise the structure fails
|
||||
if [[ ${irc_client_path_lower##*/} =~ dash|bash|sh ]]; then
|
||||
# We want to know who wrapped it into the shell.
|
||||
|
@ -675,7 +668,7 @@ get_start_client()
|
|||
IRC_CLIENT="Konversation"
|
||||
;;
|
||||
*xchat-gnome)
|
||||
RC_CLIENT_VERSION=" $( $irc_client_path -v | gawk 'NR == 1 { print $2 }' )"
|
||||
IRC_CLIENT_VERSION=" $( $irc_client_path -v | gawk 'NR == 1 { print $2 }' )"
|
||||
IRC_CLIENT="X-Chat-Gnome"
|
||||
;;
|
||||
*xchat*)
|
||||
|
|
Loading…
Reference in a new issue