You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
260 B

  1. #!/usr/bin/env bash
  2. RET=0
  3. CUR_DIR=$(pwd)
  4. SHELL_FILES=$(find "${CUR_DIR}" -type f -name '*.sh')
  5. for SH_F in ${SHELL_FILES[*]}; do
  6. shellcheck --color=always \
  7. --severity=style \
  8. "${SH_F}" \
  9. || RET=${?}
  10. done
  11. exit ${RET}