improvements from roko
This commit is contained in:
parent
17237c513b
commit
3c16633482
|
@ -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 "failed to make directoris $target_themes_dir & $home_local_themes_dir"; exit 1; }
|
||||||
|
|
||||||
echo "Set watch for" "${source_theme_dirs[@]}" "directories ..."
|
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"
|
rsync -av --delete --progress "${source_theme_dirs[@]}" "$target_themes_dir"
|
||||||
echo "Directory $target_themes_dir is synchronized with" "${source_theme_dirs[@]}"
|
echo "Directory $target_themes_dir is synchronized with" "${source_theme_dirs[@]}"
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue
Block a user