This folder is just a local source for reusable patterns and snippets, many derived from William E. Shotts, Jr.
This does result in repeated code and some maintenance overhead, but allows scripts to be self-contained, rather than loading these utility pieces in order to run.
Files are NOT executable Bash scripts; they are saved as .sh
only for the
syntax highlighting. Thus the second line in each file disables
shellcheck.
If considering using temporary files: temp.sh
When you're ready to release, be sure to go back over the script and look for comment lines that don't need to be included, as well as pieces that may not be necessary -- checking for flags with arguments when you're not using any such flags, deriving the extension of a provided file without using that variable, etc.