Skip to content

Commit

Permalink
Allow running formatting scripts with no arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Relf committed May 28, 2021
1 parent 02d4444 commit bdeaaac
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions scripts/fourmolu
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@

set -euo pipefail

if [ "$#" -eq 0 ]; then
echo "Please specify the command-line options to pass to 'fourmolu'" >&2
exit 1
fi

git_root=$(git rev-parse --show-toplevel)

fourmolu=$(nix-build "${git_root}/nix/pkgs.nix" --attr haskellPackages.fourmolu --no-out-link)
Expand Down
5 changes: 0 additions & 5 deletions scripts/nixpkgs-fmt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@

set -euo pipefail

if [ "$#" -eq 0 ]; then
echo "Please specify the command-line options to pass to 'nixpkgs-fmt'" >&2
exit 1
fi

git_root=$(git rev-parse --show-toplevel)

nixpkgs_fmt=$(nix-build "${git_root}/nix/pkgs.nix" --attr nixpkgs-fmt --no-out-link)
Expand Down

0 comments on commit bdeaaac

Please sign in to comment.