https://ashishb.net/programming/better-bash/
The first two statements of your BASH script should be...