From 2425ab8a9419da38e36cd739edd9db3dff126cff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Thu, 12 Dec 2024 18:39:49 +0100 Subject: [PATCH] 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 * Fix GitHub syntax highlighting for bash scripts --------- Co-authored-by: Stefan Agner --- tellstick/data/run.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tellstick/data/run.sh b/tellstick/data/run.sh index 1b57bf3..f2ca631 100755 --- a/tellstick/data/run.sh +++ b/tellstick/data/run.sh @@ -1,4 +1,5 @@ #!/usr/bin/with-contenv bashio +# shellcheck shell=bash set -e CONFIG="/etc/tellstick.conf"