From bdeaaace9a863a5d3ced034e8422f69a236733a1 Mon Sep 17 00:00:00 2001 From: Evan Relf Date: Fri, 28 May 2021 13:22:24 -0700 Subject: [PATCH] Allow running formatting scripts with no arguments --- scripts/fourmolu | 5 ----- scripts/nixpkgs-fmt | 5 ----- 2 files changed, 10 deletions(-) diff --git a/scripts/fourmolu b/scripts/fourmolu index c53b1c1..827fec1 100755 --- a/scripts/fourmolu +++ b/scripts/fourmolu @@ -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) diff --git a/scripts/nixpkgs-fmt b/scripts/nixpkgs-fmt index 71bd9fd..e4c81d6 100755 --- a/scripts/nixpkgs-fmt +++ b/scripts/nixpkgs-fmt @@ -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)