Hot take, but given how bash scripting has always been kind of an awful experience, with a myriad of footguns to protect against and lots of magic syntax to memorize, I can't imagine why I'd ever write a non-trivial shell script by hand nowadays. Yes, I'd read over it and clean up the obvious cruft, and I'd of course run shellcheck on it (and force the LLM to fix any issues without adding exceptions), but at this point writing shell scripts at all requires more patience than I can muster.
Locally, I don't even run a bash-compatible shell as my default anymore because it's just too annoying. I can tolerate writing nushell scripts with much more patience than I ever was able to even in the days I would tinker with my zsh config daily.