shellcheck-tests.sh 405 B

1234567891011121314151617181920212223
  1. #!/bin/sh
  2. # Exit on errors
  3. set -e
  4. # Verbose mode
  5. set -v
  6. # Output is prefixed with the name of the script
  7. myname=$(basename "$0")
  8. echo "$myname: finding chutney directory"
  9. TEST_DIR=$(dirname "$0")
  10. CHUTNEY_DIR=$(dirname "$TEST_DIR")
  11. echo "$myname: changing to chutney directory"
  12. cd "$CHUTNEY_DIR"
  13. echo "$myname: running shellcheck tests"
  14. shellcheck chutney
  15. find . -name "*.sh" -exec shellcheck {} +