openethereum/js-old/scripts/lint.sh
2017-10-17 16:09:43 +02:00

16 lines
234 B
Bash
Executable File

#!/bin/bash
# change into the js directory (one down from scripts)
pushd `dirname $0`
cd ..
# run lint & tests and store the exit code
EXITCODE=0
npm run lint || EXITCODE=1
# back to root
popd
# exit with exit code
exit $EXITCODE