diff --git a/bin/periodic/fix-flatpaks-theming b/bin/periodic/fix-flatpaks-theming index 5c95b56..e16c3f7 100755 --- a/bin/periodic/fix-flatpaks-theming +++ b/bin/periodic/fix-flatpaks-theming @@ -8,7 +8,7 @@ mkdir -p "$target_themes_dir" "$home_local_themes_dir" || { echo "failed to make directoris $target_themes_dir & $home_local_themes_dir"; exit 1; } echo "Set watch for" "${source_theme_dirs[@]}" "directories ..." -while inotifywait -qr -e 'modify,attrib,move,move_self,create,delete,delete_self,unmount' "${source_theme_dirs[@]}"; do +inotifywait -qmr -e 'modify,attrib,move,move_self,create,delete,delete_self,unmount' "${source_theme_dirs[@]}" | while read -r events; do rsync -av --delete --progress "${source_theme_dirs[@]}" "$target_themes_dir" echo "Directory $target_themes_dir is synchronized with" "${source_theme_dirs[@]}" done