1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-22 12:20:07 +00:00

suppress the expected error message from PlistBuddy

This commit is contained in:
Roman Perepelitsa 2020-06-28 10:45:46 +02:00
parent ae32fd58b3
commit db6f909958

View file

@ -535,7 +535,7 @@ function install_font() {
) )
for k t v in $settings; do for k t v in $settings; do
/usr/libexec/PlistBuddy -c "Set :\"New Bookmarks\":0:$k $v" \ /usr/libexec/PlistBuddy -c "Set :\"New Bookmarks\":0:$k $v" \
~/Library/Preferences/com.googlecode.iterm2.plist && continue ~/Library/Preferences/com.googlecode.iterm2.plist 2>/dev/null && continue
run_command "" /usr/libexec/PlistBuddy -c \ run_command "" /usr/libexec/PlistBuddy -c \
"Add :\"New Bookmarks\":0:$k $t $v" ~/Library/Preferences/com.googlecode.iterm2.plist "Add :\"New Bookmarks\":0:$k $t $v" ~/Library/Preferences/com.googlecode.iterm2.plist
done done