How to write idempotent Bash scripts
655 points by kiyanwang
Read the article
Discussion on Hacker News