Lint bash scripts with custom shebangs (#3824)

* Lint bash scripts with custom shebangs

Many scripts in this repository have this shebang:

    #!/usr/bin/with-contenv bashio

However, this doesn't match the shebang regex in action-shellcheck
and therefore those files wouldn't get included in the linting check.

* Fix or ignore current shellcheck violations

* shellcheck: specify bash shell type for scripts with unrecognized shebangs

* Convert shutdown script from CRLF line endings to LF

* shellcheck: silence remaining violations for now

* Apply suggestions from code review

* mariadb: avoid adding extra newlines

Co-authored-by: Stefan Agner <stefan@agner.ch>

* Fix GitHub syntax highlighting for bash scripts

---------

Co-authored-by: Stefan Agner <stefan@agner.ch>
This commit is contained in:
Mislav Marohnić
2024-12-12 18:39:49 +01:00
committed by GitHub
parent 68ceb7d7d7
commit 2425ab8a94

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
set -e set -e
CONFIG="/etc/tellstick.conf" CONFIG="/etc/tellstick.conf"