Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Commit

Permalink
fail if it differs
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Jun 8, 2017
1 parent 03dcb74 commit 60b2aa8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion script/test
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ set -e
./build/build.sh

# shfmt files
./script/format
test "$(./script/format | wc -l)" -eq 0 || {
echo "Invalid format, run ./script/format for more detail." >&2
./script/format >&2
exit 1
}

# link to ~ and cd to it
cd ..
Expand Down

0 comments on commit 60b2aa8

Please sign in to comment.