sourcegraph/dev/check/bash-syntax.sh
Gonzalo Peci 59ee69dbb8
Expand Buildkite section on error (#19025)
* Add to dev/check
* Ignore SC2181
2021-03-10 13:06:47 +01:00

11 lines
174 B
Bash
Executable File

#!/usr/bin/env bash
echo "--- bash syntax"
trap "echo ^^^ +++" ERR
set -e
cd "$(dirname "${BASH_SOURCE[0]}")"/../..
find dev -name '*.sh' -print0 | xargs -0 -n 1 bash -n