mirror of
https://github.com/smxi/inxi.git
synced 2025-01-19 08:57:57 +00:00
branch one tests
This commit is contained in:
parent
082151ef84
commit
2775ac4aed
9
inxi
9
inxi
|
@ -3,7 +3,7 @@
|
||||||
#### Script Name: inxi
|
#### Script Name: inxi
|
||||||
#### version: 1.8.32
|
#### version: 1.8.32
|
||||||
#### Date: January 23 2013
|
#### Date: January 23 2013
|
||||||
#### Patch Number: 01-one
|
#### Patch Number: 02-one
|
||||||
########################################################################
|
########################################################################
|
||||||
#### SPECIAL THANKS
|
#### SPECIAL THANKS
|
||||||
########################################################################
|
########################################################################
|
||||||
|
@ -2417,6 +2417,11 @@ get_start_client()
|
||||||
|
|
||||||
if [[ $B_RUNNING_IN_SHELL == 'true' ]];then
|
if [[ $B_RUNNING_IN_SHELL == 'true' ]];then
|
||||||
IRC_CLIENT='Shell'
|
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
|
unset IRC_CLIENT_VERSION
|
||||||
elif [[ -n $PPID && -f /proc/$PPID/exe ]];then
|
elif [[ -n $PPID && -f /proc/$PPID/exe ]];then
|
||||||
if [[ $B_OVERRIDE_FILTER != 'true' ]];then
|
if [[ $B_OVERRIDE_FILTER != 'true' ]];then
|
||||||
|
@ -2717,7 +2722,7 @@ get_start_client()
|
||||||
else
|
else
|
||||||
# this should handle certain cases where it's ssh or some other startup tool
|
# this should handle certain cases where it's ssh or some other startup tool
|
||||||
# that falls through all the other tests
|
# 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
|
if [[ -n $ps_l ]];then
|
||||||
IRC_CLIENT=$ps_l
|
IRC_CLIENT=$ps_l
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue