shellcheck (#23)

* shellcheck

* fix(script): shellcheck and refactor

* fix(scripts): rename snake_casing no .sh

Follows Google's Shell Style Guide:
https://google.github.io/styleguide/shellguide.html

Script names must use snake_casing

Remove the `.sh` extension on `chmod +x` scripts because
the shell interpreter choice is in the shebang.

The `.sh` extension is to be maintained for sourced scripts because
those are not stand-alone executables:

```sh
. sourced_script.sh # . sourcing
source sourced_script.sh # alternate syntax
```

* decomp

* Stay CI

Co-authored-by: Léa Gris <[email protected]>
Co-authored-by: Martin Robertz <[email protected]>
This commit is contained in:
authored and GitHub committed 2022-02-20 18:02:33 +01:00
1 parent a67665d33d
commit 52bb73b6fd
6 files changed
+66 -46

No files matched your search

+2 -2
View File
@@ -41,5 +41,5 @@ jobs:
- name: Test no errors reported during server run
run: |
chmod +x .github/scripts/test-no-error-reports.sh
.github/scripts/test-no-error-reports.sh
chmod +x .github/scripts/test_no_error_reports
.github/scripts/test_no_error_reports
@@ -21,4 +21,4 @@ jobs:
git config user.email "<>"
- name: Ensure build script version is up to date
run: .github/scripts/update-version.sh
run: .github/scripts/update_version