diff --git a/macos/install.sh b/macos/install.sh index 97fae28..0249938 100755 --- a/macos/install.sh +++ b/macos/install.sh @@ -6,9 +6,11 @@ ROOT_DIR=$(dirname "$SCRIPT_DIR") $ROOT_DIR/set_up_common.sh -mkdir -p "$HOME/Library/Keyboard Layouts/" -cp "/Users/jedrzej/Library/Mobile Documents/com~apple~CloudDocs/Random/Keyboard Layouts/Polish-German.bundle" "$HOME/Library/Keyboard Layouts/" -echo "Reboot and add the Polish-German keyboard layout from Polish keyboards" +KEYBOARD_PATH="$HOME/Library/Keyboard Layouts/Polish-German.bundle" +if [ -e "/Users/jedrzej/Library/Mobile Documents/com~apple~CloudDocs/Random/Keyboard Layouts/Polish-German.bundle" ] && [ ! -e $KEYBOARD_PATH ]; then + cp "/Users/jedrzej/Library/Mobile Documents/com~apple~CloudDocs/Random/Keyboard Layouts/Polish-German.bundle" "$KEYBOARD_PATH" + echo "Reboot and add the Polish-German keyboard layout from Polish keyboards" +fi cp ROOT_DIR/dotfiles_private/fonts/* ~/Library/Fonts/ SSH_CONFIG_PATH=/etc/ssh/sshd_config.d/100-macos.conf