Lint shell scripts under files/ by their shebang #70

Merged
kevinheyer merged 1 commit from lint-scripts-under-files into main 2026-11-25 10:29:29 +01:00
Member

Refs #2

tools/lint.sh prüfte nur *.sh, *.func und Dateien unter bin/. Jetzt kommen alle Dateien unter files/ dazu, deren erste Zeile bash oder sh als Shebang nennt (ohne *.j2).

Geprüft: tools/lint.sh über alle iac-*-Repos in /root/projects ist grün; iac-ai-workstation hat 4 statt 1 shellcheck-Datei, iac-nginx 2 statt 1. Nicht geprüft: Repos, die nicht lokal liegen.

Refs #2 `tools/lint.sh` prüfte nur `*.sh`, `*.func` und Dateien unter `bin/`. Jetzt kommen alle Dateien unter `files/` dazu, deren erste Zeile `bash` oder `sh` als Shebang nennt (ohne `*.j2`). Geprüft: `tools/lint.sh` über alle `iac-*`-Repos in /root/projects ist grün; iac-ai-workstation hat 4 statt 1 shellcheck-Datei, iac-nginx 2 statt 1. Nicht geprüft: Repos, die nicht lokal liegen.
Lint shell scripts under files/ by their shebang
All checks were successful
/ lint (push) Successful in 29s
/ lint (pull_request) Successful in 31s
0310f74b2c
lint.sh checked only *.sh, *.func and files under bin/. Scripts such as
iac-ai-workstation/files/ai-workstation-knowledge, without an extension
and outside bin/, went unchecked.

Take every file under files/ whose first line names bash or sh, except
Jinja templates (*.j2).

Tested: tools/lint.sh over every iac-* repo in /root/projects is green;
iac-ai-workstation now has 4 shellcheck files instead of 1, iac-nginx 2
instead of 1.

Refs #2
Sign in to join this conversation.
No description provided.