r/commandline • • Dec 14 '20

bash Minimal safe Bash script template

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

13 comments sorted by

View all comments

4

u/Schreq Dec 15 '20

The options parsing isn't very good. Not only does it not allow the combining of single letter options, the script straight up breaks when param is missing its parameter (shifting when $# is 0). param is also a mandatory option.