i have the following bash script:
#!/bin/sh
dir1=/source/dir/path/
while inotifywait -qqre modify "$dir1"; do
rm -r /destination/dir/path
find /source/dir/path/ -name .svn -exec rm -rf '{}' \;
cp -ruv /source/dir/path/* /destination/dir/path/
done
the thing is that the first 2 commands are working well but the process is killed after executing (successfully) the "find -exec" command. Any thoughts?
BTW- if i remove the "find -exec" everything goes well.