zammad-docker-compose/.github/lint-scripts.sh
2020-02-26 18:17:01 +01:00

19 lines
286 B
Bash
Executable File

#!/bin/sh
#
# lint bash scripts
#
set -o errexit
REPO_ROOT="$(git rev-parse --show-toplevel)"
TMP_FILE="$(mktemp)"
find "${REPO_ROOT}" -type f -name "*.sh" > "${TMP_FILE}"
while read -r FILE; do
echo lint "${FILE}"
shellcheck -x "${FILE}"
done < "${TMP_FILE}"
rm "${TMP_FILE}"