LINKED LIST [txt mode] ▸ How to write idempotent Bash scripts
home explore | log in

How to write idempotent Bash scripts

arslan.io · first added by @afreshcup · 2026-09-30 · 2 upvotes

log in to save, upvote or flag this.


─── In 0 lists ─────────────────────────────────────────

(not in any lists yet)


─── Discussions ────────────────────────────────────────

* How to write idempotent Bash scripts
655 pts · 189 comments · node
* How to write idempotent Bash scripts (2019)
330 pts · 101 comments · node

─── From the discussion ────────────────────────────────

* flock(1): Manage locks from shell scripts - Linux man page
linux.die.net · node
* https://unix.stackexchange.com/questions/228597/how-to-copy-a-folder-recursively-in-an-idempotent-way-using-cp
unix.stackexchange.com · node
* Bash Strict Mode
redsymbol.net · node
* mktemp(1): create temporary file/directory - Linux man page
linux.die.net · node
* Using the "trap" shell builtin to cleanup a tempfile safely duiring errors.
gist.github.com · node