1234567891011121314151617181920212223242526 |
- #!/bin/sh
- # Exit on errors
- set -e
- # Verbose mode
- set -v
- # SC1117 was disabled after 0.5, because it was too pedantic
- EXCLUSIONS="--exclude=SC1117"
- # Output is prefixed with the name of the script
- myname=$(basename "$0")
- echo "$myname: finding chutney directory"
- TEST_DIR=$(dirname "$0")
- CHUTNEY_DIR=$(dirname "$TEST_DIR")
- echo "$myname: changing to chutney directory"
- cd "$CHUTNEY_DIR"
- echo "$myname: running shellcheck tests with $EXCLUSIONS"
- shellcheck "$EXCLUSIONS" chutney
- find . -name "*.sh" -exec shellcheck "$EXCLUSIONS" {} +
|