From 05ccaf35f7ce91e0c1f0950ba18425b4b65dca19 Mon Sep 17 00:00:00 2001 From: Chris Ford Date: Tue, 4 Apr 2017 09:40:16 +0100 Subject: [PATCH] Abort if stylish-haskell is missing. --- stylize.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/stylize.sh b/stylize.sh index 28ec4913b..8456b13a5 100755 --- a/stylize.sh +++ b/stylize.sh @@ -11,6 +11,7 @@ then stack install --resolver "lts-$STACKVER" stylish-haskell --no-terminal fi +command -v stylish-haskell >/dev/null 2>&1 || { echo "Could not find stylish-haskell. Aborting." >&2; exit 1; } find . -name \*.hs -and \( -not \( -name Setup.hs -or -path ./.cabal-sandbox/\* -or -path ./dist/\* \) \) | xargs stylish-haskell -i > stylish-out 2>&1