This commit does not introduce any functionality change. It is only applying suggestions from the shellcheck linter and reformats the code using shfmt. Shellcheck is a base shell linter that helps avoiding common shell script mistakes. Shfmt formats shell code similar to other Xfmt (i.e. gofmt) tools. No need to format code manually or argue about the style anymore! Both tools can be integrated with many editors or IDE.
Dev scripts
For manual testing. Works on my box(*) ...
*) OSX
make install
cd contrib/local
rm -rf /tmp/trash
HOME=/tmp/trash bash setup_wasmd.sh
HOME=/tmp/trash bash start_node.sh
Next shell:
cd contrib/local
./01-accounts.sh
./02-contracts.sh
Shell script development
Use shellcheck to avoid common mistakes in shell scripts.
Use shfmt to ensure a consistent code formatting.