font: fix line length for iTerm2 profile count

This commit is contained in:
Andrew Titmuss 2018-05-24 13:55:09 +10:00
parent d6d6e6ea63
commit 5143b20ce1
No known key found for this signature in database
GPG key ID: 8AF42975C787E0B2

View file

@ -2800,7 +2800,8 @@ END
font_file="${HOME}/Library/Preferences/com.googlecode.iterm2.plist" font_file="${HOME}/Library/Preferences/com.googlecode.iterm2.plist"
# Count Guids in "New Bookmarks"; they should be unique # Count Guids in "New Bookmarks"; they should be unique
profiles_count="$(PlistBuddy -c "Print :New\ Bookmarks:" "$font_file" | grep -w -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<profiles_count; i++)); do
profile_name="$(PlistBuddy -c "Print :New\ Bookmarks:${i}:Name:" "$font_file")" profile_name="$(PlistBuddy -c "Print :New\ Bookmarks:${i}:Name:" "$font_file")"