diff --git a/home/.chezmoiscripts/universal/run_onchange_after_19-theme-files.tmpl b/home/.chezmoiscripts/universal/run_onchange_after_19-theme-files.tmpl index 78d243e3..9864122f 100644 --- a/home/.chezmoiscripts/universal/run_onchange_after_19-theme-files.tmpl +++ b/home/.chezmoiscripts/universal/run_onchange_after_19-theme-files.tmpl @@ -27,7 +27,7 @@ fi ### Copy theme files over to /usr/local/share if [ -d "$HOME/.local/src/{{ .theme | lower }}/share" ]; then logg info 'Copying ~/.local/src/{{ .theme | lower }}/share to /usr/local/share' - sudo cp -rf ~/.local/src/betelgeuse/share /usr/local/ + sudo rsync -av "$HOME/.local/src/betelgeuse/share/" "/usr/local/share/" else logg warn '~/.local/src/betelgeuse/share is missing' fi diff --git a/home/.chezmoiscripts/universal/run_onchange_after_70-misc-bug-fixes.tmpl b/home/.chezmoiscripts/universal/run_onchange_after_70-misc-bug-fixes.tmpl index 2a3e461f..66ae986d 100644 --- a/home/.chezmoiscripts/universal/run_onchange_after_70-misc-bug-fixes.tmpl +++ b/home/.chezmoiscripts/universal/run_onchange_after_70-misc-bug-fixes.tmpl @@ -20,8 +20,8 @@ fi ### Merge latest Candy icons into the Betelgeuse icon theme if command -v rsync > /dev/null; then - if [ -d "$HOME/.local/src/candy-icons" ] && [ -d "/usr/local/share/icons/{{ .theme }}" ]; then - sudo rsync -rtvu "$HOME/.local/src/candy-icons/" "/usr/local/share/icons/{{ .theme }}/" + if [ -d "$HOME/.local/src/candy-icons" ] && [ -d /usr/local/share/icons/Candy ]; then + sudo rsync -rtvu "$HOME/.local/src/candy-icons/" "/usr/local/share/icons/Candy/" else logg warn 'Skipping synchronization of Candy icons since either the target or destination folder is not present' fi