Refactor bash code + add bash linter
- Refactored the code, to follow the bash style guide
- Added unified "reset stats" snippet (see also: https://twitter.com/samokhvalov/status/1724715790556155915)
- Added bash linter
- Fixed 1 error and a few dozen of warnings reported by the linter
- Adjusted CI/CD config so the "cleanup" job is now allowed to fail as well (not the best solution but okay for now)
Edited by Nikolay Samokhvalov