Currently, shellcheck reports lots of minor issues in the Bash scripts. Most of these can be trivially fixed. Some requires minor changes.