From de0d342852c587e88cd4a56d24df29b04409ff37 Mon Sep 17 00:00:00 2001 From: Andrew Titmuss Date: Thu, 24 May 2018 15:46:38 +1000 Subject: [PATCH] Revert "Revert "term_font: fix iTerm2 checking 2 more profiles than exists"" This reverts commit f49919e95773878709e2e0c52453d4321a31c521. --- neofetch | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 68b9e6aa..853e90af 100755 --- a/neofetch +++ b/neofetch @@ -2800,9 +2800,10 @@ END font_file="${HOME}/Library/Preferences/com.googlecode.iterm2.plist" # Count Guids in "New Bookmarks"; they should be unique - profiles_count="$(PlistBuddy -c "Print :New\ Bookmarks:" "$font_file" | grep -c "Guid")" + profiles_count="$(PlistBuddy -c "Print :New\ Bookmarks:" "$font_file" | \ + grep -w -c "Guid")" - for ((i=0; i<=profiles_count; i++)); do + for ((i=0; i