Skip to content

Commit

Permalink
apply shellcheck review
Browse files Browse the repository at this point in the history
  • Loading branch information
Kleidukos committed May 18, 2023
1 parent e3e0a46 commit 7fbb57c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .githooks/pre-push
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ else
fi

if which fourmolu > /dev/null ; then
find Cabal Cabal-syntax cabal-install -name '*.hs' \
find Cabal Cabal-syntax cabal-install -name '*.hs' -print0 \
! -path Cabal-syntax/src/Distribution/Fields/Lexer.hs \
! -path Cabal-syntax/src/Distribution/SPDX/LicenseExceptionId.hs \
! -path Cabal-syntax/src/Distribution/SPDX/LicenseId.hs \
! -path Cabal/src/Distribution/Simple/Build/Macros/Z.hs \
! -path Cabal/src/Distribution/Simple/Build/PathsModule/Z.hs \
| xargs -P ${PROCS} -I {} fourmolu -q --mode check {}
| xargs -P "${PROCS}" -I {} fourmolu -q --mode check {}
else
echo "Fourmolu not found, aborting."
exit 1
Expand Down

0 comments on commit 7fbb57c

Please sign in to comment.