solana-with-rpc-optimizations/ci/shellcheck.sh

15 lines
366 B
Bash
Executable File

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