idempotent-bash
idempotent-bash copied to clipboard
Make your bash scripts idempotent.
Currently, whenever there is an error, we dump the log and exit. When running in parallel, however, this tends to create an annoying cascade of log dumps. Although we should...
These would be utility functions that quietly change directories. Technically, these aren't idempotent (although we could check to see if we are already in the correct directory and not move).
To check if a link is correct, determine the real path for both the source and the target. Currently, we're only checking the target's real path.