How to write idempotent Bash scripts | Hacker News Reader