solana/ci/shellcheck.sh

19 lines
449 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2018-05-27 18:01:34 -07:00
#
# Reference: https://github.com/koalaman/shellcheck/wiki/Directive
2018-11-11 09:25:59 -08:00
set -e
2018-05-27 18:01:34 -07:00
cd "$(dirname "$0")/.."
2019-01-08 14:25:44 -08:00
(
set -x
find . -name "*.sh" \
-not -regex ".*/ci/semver_bash/.*" \
-not -regex ".*/.cargo/.*" \
-not -regex ".*/node_modules/.*" \
-not -regex ".*/target/.*" \
-print0 \
| xargs -0 \
ci/docker-run.sh koalaman/shellcheck --color=always --external-sources --shell=bash
)
echo --- ok