From db6f909958bdc452f45f62df58c123c50fed1c5f Mon Sep 17 00:00:00 2001 From: Roman Perepelitsa Date: Sun, 28 Jun 2020 10:45:46 +0200 Subject: [PATCH] suppress the expected error message from PlistBuddy --- internal/wizard.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/wizard.zsh b/internal/wizard.zsh index 767b787a..eb27e2c1 100644 --- a/internal/wizard.zsh +++ b/internal/wizard.zsh @@ -535,7 +535,7 @@ function install_font() { ) for k t v in $settings; do /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 \ "Add :\"New Bookmarks\":0:$k $t $v" ~/Library/Preferences/com.googlecode.iterm2.plist done