scripts/format in recurly-3.5.0 vs scripts/format in recurly-3.6.0
- old
+ new
@@ -1,8 +1,12 @@
#!/usr/bin/env bash
-set -e
if [ "$1" == "--check" ]; then
./bin/rufo . --check
+ RESULT=$?
+ if [ $RESULT != 0 ]; then
+ echo "Code is not properly formatted. Please execute ./scripts/format to autoformat the code."
+ exit $RESULT
+ fi
else
./bin/rufo . -x
fi