ci: check shell script format

This commit is contained in:
Revant Nandgaonkar
2021-06-24 16:54:17 +05:30
parent 391ee4c74e
commit 86a2fcc1fa
5 changed files with 58 additions and 35 deletions

11
tests/check-format.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
echo "Checking bash scripts with shellcheck" >&2
shellcheck --check-sourced --severity=style --color=always --exclude=SC2164,SC2086,SC2012,SC2016 \
build/common/worker/docker-entrypoint.sh \
build/common/worker/healthcheck.sh \
build/common/worker/install_app.sh \
build/erpnext-nginx/install_app.sh \
build/frappe-nginx/docker-entrypoint.sh \
build/frappe-socketio/docker-entrypoint.sh