The script has only been tested with zsh. I need to add a !# to the top of the script to force zsh. If you have a Terminal.app that defaults to bash (the default in older macOS versions), then you can probably just type
zsh
to start a zsh terminal session.
The script does nothing if you run it directly like that. Load the script using
source ThunderboltUtil.sh
. This loads the DROM commands into the current terminal session. Then you use the DROM commands in the terminal. This saves me from having to make a menu and you can use the commands in a script (see the included BBEdit worksheet for examples).
I can use
https://www.shellcheck.net to fix bash compatibility and other possible issues. I'll post the script to GitHub after testing the changes.