From e8f9f44091567a2f3c33dac2d7c9793e3eae15ca Mon Sep 17 00:00:00 2001 From: Dylan Date: Sun, 8 May 2016 10:17:17 +1000 Subject: [PATCH] Fix iphone model appearing in distro output --- neofetch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 63f24d5a..166bf969 100755 --- a/neofetch +++ b/neofetch @@ -501,7 +501,8 @@ getdistro () { ;; "iPhone OS") - distro="iOS $(sw_vers -productVersion 2>/dev/null)" + distro="iOS $(sw_vers -productVersion)" + distro=${distro% *} ;; "OpenBSD")