I suppose the post- script will run no matter what?
If so, I think it would be very useful if you could have different scripts for different exit codes. Let’s say
post-prune is the catch all script,
0post-prune would be for exit code 0,
1post-prune would be for exit code 1 etc.