Your repo was my first time trying to find a bug in any kind of code other than my own. So bear with me, please.
The only thing I think may cause an issue is that `bash` should be installed in `/usr/local/bin` on OpenBSD and not `/bin/bash` if the installation is done through `pkg_add`. I know I've had to make that change when copying shell scripts written on Mac over to an OpenBSD machine.
Your mileage may be varying.