Scripts and their undo

TL;DR. Scripts are a great way to automate the mundane. But be sure you give yourself a way out — an undo — when running them.

Some time ago, I had to carry out a long sequence of manual changes in the deployment of my ‘cloud’ service, and so like a good software engineer, I automated large chunks of these changes with shell scripts. Here I learned the importance of building and ‘undo’ in all your shell scripts that mutate the state of world.

Read more