From 013e9d66524ecb4f9fe41b0c636c9b95af195ae2 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 2 Nov 2016 09:52:46 +1100 Subject: [PATCH] Termfont: [Linux] Fix whitespace issue --- neofetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 06d193e1..1b5d6122 100755 --- a/neofetch +++ b/neofetch @@ -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")" ;; *)