Skip to content

Commit

Permalink
Fix typo, make stylize.sh work when a dist directory exists
Browse files Browse the repository at this point in the history
  • Loading branch information
enolan committed Oct 19, 2016
1 parent 7ac40af commit 0fec73c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pinstall: dist/setup-config
build: dist/setup-config
$(CABAL) build $(CABALFLAGS)

test: doc test_c sylize
test: doc test_c stylize

stylize:
./stylize.sh
Expand Down
2 changes: 1 addition & 1 deletion stylize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ then
fi


find . -name \*.hs -and \( -not -name Setup.hs \) | xargs stylish-haskell -i > stylish-out 2>&1
find . -name \*.hs -and \( -not \( -name Setup.hs -or -path ./dist/\* \) \) | xargs stylish-haskell -i > stylish-out 2>&1

# It doesn't do exit codes properly, so we just check if it outputted anything.
if [ -s stylish-out ];
Expand Down

0 comments on commit 0fec73c

Please sign in to comment.