I have a /domains
directory in which I have entries such as
theawesomesite.com
0.2.v.theawesomesite.com
0.3.v.theawesomesite.com
And after testing 0.3, I'll set the main domain to alias the new version. Works really nice. Now, I want to be able to delete all old versions. I tried this:
find /domains -name "*.v.theawesomesite.com" -not -name "0.3.v.*" -ignore_readdir_race -exec rm -fr {} \;
The old domain directories are deleted, but for each of them find
complains No such file or directory
. I added the -ignore_readdir_race
under the idea it would help, but it has not.
Any ideas how to get rid of these complaints and why find
is complaining in the first place. It has to be stat
ing after the -exec
but I can't figure out why.