lint-scripts.sh 267 B

123456789101112131415161718
  1. #!/bin/sh
  2. #
  3. # lint bash scripts
  4. #
  5. set -o errexit
  6. CONFIG_DIR="./.circleci"
  7. TMP_FILE="$(mktemp)"
  8. find "${CONFIG_DIR}" -type f -name "*.sh" > "${TMP_FILE}"
  9. while read -r FILE; do
  10. echo lint "${FILE}"
  11. shellcheck -x "${FILE}"
  12. done < "${TMP_FILE}"
  13. rm "${TMP_FILE}"