You must log in or register to comment.
Nice article!
Here’s another on how to make your bash scripts more robust: https://www.davidpashley.com/articles/writing-robust-shell-scripts/
Getting into the habit of starting my scripts with
set -ue
has saved me a lot of time