branch one tests

This commit is contained in:
inxi-svn 2013-01-28 22:49:20 +00:00
parent 082151ef84
commit 2775ac4aed

9
inxi
View file

@ -3,7 +3,7 @@
#### Script Name: inxi
#### version: 1.8.32
#### Date: January 23 2013
#### Patch Number: 01-one
#### Patch Number: 02-one
########################################################################
#### SPECIAL THANKS
########################################################################
@ -2417,6 +2417,11 @@ get_start_client()
if [[ $B_RUNNING_IN_SHELL == 'true' ]];then
IRC_CLIENT='Shell'
if [[ $B_EXTRA_DATA == 'true' ]];then
ps_l=$(ps -l | gawk '($5 == '"$PPID"') {print $NF}')
IRC_CLIENT="$IRC_CLIENT ($ps_l)"
fi
echo $PPID
unset IRC_CLIENT_VERSION
elif [[ -n $PPID && -f /proc/$PPID/exe ]];then
if [[ $B_OVERRIDE_FILTER != 'true' ]];then
@ -2717,7 +2722,7 @@ get_start_client()
else
# this should handle certain cases where it's ssh or some other startup tool
# that falls through all the other tests
ps_l=$(ps -l | gawk '($5 == '$PPID') {print $NF}' )
ps_l=$(ps -p $PPID --no-headers | gawk '{print $NF}' )
if [[ -n $ps_l ]];then
IRC_CLIENT=$ps_l
else