From 98410df7881ede4cce528edb003a6938b70f6ad9 Mon Sep 17 00:00:00 2001 From: Joakim Roubert Date: Tue, 3 Sep 2019 07:51:33 +0200 Subject: [PATCH] Update install.sh according to yamt's suggestion --- install.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 9588847d01..0213a0c4ac 100755 --- a/install.sh +++ b/install.sh @@ -422,11 +422,9 @@ pstree() { for pid in $@; do echo $pid # Find and show pstree for child processes of $pid - while read parent child; do + $(ps -o ppid= -o pid=) | while read parent child; do [ $parent -ne $pid ] || pstree $child - done <<-EOF - $(ps -o ppid= -o pid=) -EOF; + done done }