Update install.sh according to yamt's suggestion

This commit is contained in:
Joakim Roubert 2019-09-03 07:51:33 +02:00 committed by GitHub
parent 6d07cb47b7
commit 98410df788
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}