solana/ci/shellcheck.sh

15 lines
366 B
Bash
Raw Normal View History

2018-05-27 18:01:34 -07:00
#!/bin/bash -e
#
# Reference: https://github.com/koalaman/shellcheck/wiki/Directive
cd "$(dirname "$0")/.."
set -x
docker pull koalaman/shellcheck
2018-05-28 12:38:55 -07:00
find -E . -name "*.sh" -not -regex ".*/(.cargo|node_modules)/.*" -print0 \
2018-05-27 18:01:34 -07:00
| xargs -0 \
docker run -w /work -v "$PWD:/work" \
koalaman/shellcheck --color=always --external-sources --shell=bash
exit 0