Closed 0xmachos closed 5 years ago
I've created the mara-cleanup
branch on my fork to cleanup mara.sh
based on shellcheck
's errors/warnings.
I'm making some other changes outside of shellcheck
's remit so we might want to open another issue to discuss cleaning up mara.sh
.
This is a pretty neat recommendation. Much appreciated. I'll open a new issue.
You might want to run all the shell/bash scripts through
shellcheck
. It's a shell script static analysis tool.Running them through
shellcheck
via CI (I use Travis) is pretty straightforward. I already have a script,test.sh
, that will find all shell/ bash files and runshellcheck
on them. Paied with my Travis config,.travis.yml
which executestest.sh
in the CI instance.shellcheck
will help catch a lot of issues. We can use its warnings as a basis for cleaning up some of scripts.