We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f49919e commit de0d342Copy full SHA for de0d342
neofetch
@@ -2800,9 +2800,10 @@ END
2800
font_file="${HOME}/Library/Preferences/com.googlecode.iterm2.plist"
2801
2802
# Count Guids in "New Bookmarks"; they should be unique
2803
- profiles_count="$(PlistBuddy -c "Print :New\ Bookmarks:" "$font_file" | grep -c "Guid")"
+ profiles_count="$(PlistBuddy -c "Print :New\ Bookmarks:" "$font_file" | \
2804
+ grep -w -c "Guid")"
2805
- for ((i=0; i<=profiles_count; i++)); do
2806
+ for ((i=0; i<profiles_count; i++)); do
2807
profile_name="$(PlistBuddy -c "Print :New\ Bookmarks:${i}:Name:" "$font_file")"
2808
2809
if [[ "$profile_name" == "$current_profile_name" ]]; then
0 commit comments