From d019d7b7c50aa07338753ffadce27aef8da68be0 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Sun, 9 Nov 2008 03:59:27 +0000 Subject: [PATCH] fixed some bugs in get client data --- inxi | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/inxi b/inxi index 63b1d3f..84872de 100755 --- a/inxi +++ b/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 - 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*)