From fd66879bd444176ee415263570c0f5bf97785981 Mon Sep 17 00:00:00 2001 From: Ting Zhou Date: Tue, 2 Jul 2024 03:49:32 -0700 Subject: [PATCH] misc/apps: echo to dotty log --- config | 2 +- misc/apps/_init | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/config b/config index 02100d9..158ad9c 160000 --- a/config +++ b/config @@ -1 +1 @@ -Subproject commit 02100d9041ee1b97726f180d2c37a395bdc1118c +Subproject commit 158ad9c66d819d5c63d92886972f623ad61e4978 diff --git a/misc/apps/_init b/misc/apps/_init index e3936d2..0ea194c 100755 --- a/misc/apps/_init +++ b/misc/apps/_init @@ -33,9 +33,10 @@ link() { # Add custom words to languagetool and restart server if [[ -f $DOTTY_ASSETS_HOME/languagetool/spelling_custom.txt ]]; then - cp -f $DOTTY_ASSETS_HOME/languagetool/spelling_custom.txt \ - $(brew --prefix languagetool)/libexec/org/languagetool/resource/en/hunspell/ - echo-info "If you want to restart languatetool service, use 'brew services restart languagetool'" + local dict_dir="$(brew --prefix languagetool)/libexec/org/languagetool/resource/en/hunspell/" + mkdir -p "${dict_dir}" + cp -f $DOTTY_ASSETS_HOME/languagetool/spelling_custom.txt "${dict_dir}" + echo "If you want to restart languatetool service, use 'brew services restart languagetool'" > $DOTTY_UPDATE_LOG fi }