Termfont: [Linux] Fix whitespace issue

This commit is contained in:
Dylan Araps 2016-11-02 09:52:46 +11:00
parent 453a38d79f
commit 013e9d6652
1 changed files with 2 additions and 2 deletions

View File

@ -1472,8 +1472,8 @@ getterm() {
;;
"Linux")
parent="$(grep -F "PPid:" "/proc/${1:-$PPID}/status")"
name="$(< "/proc/${parent/PPid:[[:space:]]}/comm")"
parent="$(grep -i "PPid:" "/proc/${1:-$PPID}/status")"
name="$(< "/proc/$(trim "${parent/PPid:}")/comm")"
;;
*)