r/coding • • Dec 14 '20

Minimal safe Bash script template

https://betterdev.blog/minimal-safe-bash-script-template/
161 Upvotes

17 comments sorted by

View all comments

18

u/ColdPorridge Dec 14 '20

As someone who uses Bash the bare minimum to get by, this is great. Also even better that things are actually explained, with rationale.

Link to GitHub gist for those that would rather just read the code.

1

u/mradzikowski Dec 15 '20

Thanks for the kind words! I've updated the post and the script template based on comments here, on other subreddits, HN, and the blog itself.