Skip to content

add: teamspeak

add: teamspeak #374

Workflow file for this run

name: Bash Syntax Check
on:
pull_request:
paths:
- "ct/**/*.sh"
- "install/**/*.sh"
- "vm/**/*.sh"
- "tools/**/*.sh"
- ".github/workflows/bash-syntax.yml"
push:
branches: [main]
paths:
- "ct/**/*.sh"
- "install/**/*.sh"
- "vm/**/*.sh"
- "tools/**/*.sh"
- ".github/workflows/bash-syntax.yml"
# The engine moved to community-scripts/core, which syntax-checks its own
# .func files. This repo ships scripts, so that is what gets checked here —
# all of them, not the three-file sample the old job used.
jobs:
bash-n:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Syntax-check every script
run: |
set -euo pipefail
fail=0
checked=0
while IFS= read -r -d '' f; do
checked=$((checked + 1))
if ! bash -n "$f"; then
echo "::error file=$f::bash -n failed"
fail=1
fi
done < <(find ct install vm tools -type f -name '*.sh' -print0 2>/dev/null | sort -z)
echo "checked $checked scripts"
exit "$fail"