From b5700937691e27b1662e87f018d73cac6d4e338c Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 3 Jan 2019 06:48:57 -0200 Subject: Don't run checks on git-crypt files. --- default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'default.nix') diff --git a/default.nix b/default.nix index 298d1af..c27faff 100644 --- a/default.nix +++ b/default.nix @@ -8,7 +8,9 @@ in with pkgs; with pkgs.stdenv; rec { phases = "unpackPhase buildPhase"; buildInputs = [ pkgs.shellcheck ]; buildPhase = '' - find . -type f -name '*.sh' | grep -v os-installation.sh | xargs shellcheck -e SC1090 -e SC1091 -e SC2139 + export SHELLCHECK_OPTS="-e SC1090 -e SC1091 -e SC2139" + ignored='(encrypted|os-installation.sh|notmuch-post.sh)' + find . -type f -name '*.sh' | grep -E -v $ignored | xargs shellcheck touch $out ''; }; -- cgit v1.2.3