diff options
author | EuAndreh <eu@euandre.org> | 2019-01-03 06:48:57 -0200 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2019-01-03 06:52:03 -0200 |
commit | b5700937691e27b1662e87f018d73cac6d4e338c (patch) | |
tree | b7441970a20e60e74e5f27151da1dfbb07129f8d /default.nix | |
parent | Disable 1090, 1091 and 2139 shellcheck rules. (diff) | |
download | dotfiles-b5700937691e27b1662e87f018d73cac6d4e338c.tar.gz dotfiles-b5700937691e27b1662e87f018d73cac6d4e338c.tar.xz |
Don't run checks on git-crypt files.
Diffstat (limited to 'default.nix')
-rw-r--r-- | default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
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 ''; }; |