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:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user