Install the dash shell as the default shell over bash on Arch:

yay -Sy dash dashbinsh

Install a script to check for bash-isms in scripts that claim to be POSIX shell compatible:

yay -Sy checkbashisms