From 4708140a4bd79af2c78809c0fe78f4ca0fbd9663 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 26 May 2019 13:53:18 -0300 Subject: Run shellcheck on Bash files stored in git-crypt --- .build.yml | 2 ++ default.nix | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.build.yml b/.build.yml index 62d904a..e21a512 100644 --- a/.build.yml +++ b/.build.yml @@ -15,6 +15,8 @@ tasks: - setup: | curl https://nixos.org/nix/install | sh echo '. ~/.nix-profile/etc/profile.d/nix.sh' >> ~/.buildenv + cd vps/ + git crypt unlock - tests: | cd vps/ nix-build -A test diff --git a/default.nix b/default.nix index 67830e2..08568b2 100644 --- a/default.nix +++ b/default.nix @@ -27,8 +27,7 @@ with pkgs.stdenv; rec { name = "${baseAttrs.name}-shellcheck"; buildInputs = baseAttrs.buildInputs ++ [ shellcheck ]; buildPhase = '' - ignored='(secrets/)' - find . -type f -name '*.sh' | grep -E -v $ignored | xargs shellcheck + find . -type f -name '*.sh' | xargs shellcheck touch $out ''; }); -- cgit v1.2.3