12 ms·
> Be atomic You can only fool yourself that multiple unrelated operations to the filesystem will be atomic. A more pragmatic approach is to clean up everything
by bluetomcat 10y ago
> Be atomic
You can only fool yourself that multiple unrelated operations to the filesystem will be atomic. A more pragmatic approach is to clean up everything at the beginning of the script and start the actual operations with that assumption (and checking the exit status of every command). If the script is interrupted in the middle, just start it again.