From 696a70c9e091a988ee15189eec98d93cb20e425f Mon Sep 17 00:00:00 2001 From: Alexander Bantyev Date: Mon, 11 Jan 2021 21:00:16 +0300 Subject: [PATCH] Fail early --- modules/secrets-envsubst.nix | 1 + modules/secrets.nix | 1 + 2 files changed, 2 insertions(+) diff --git a/modules/secrets-envsubst.nix b/modules/secrets-envsubst.nix index a890cf6..62c3f95 100644 --- a/modules/secrets-envsubst.nix +++ b/modules/secrets-envsubst.nix @@ -74,6 +74,7 @@ let else echo "Failed to run the substition" rm '${substituted}.tmp' + exit 1 fi ''; diff --git a/modules/secrets.nix b/modules/secrets.nix index 62a867c..cf46ad2 100755 --- a/modules/secrets.nix +++ b/modules/secrets.nix @@ -64,6 +64,7 @@ let else echo "Failed to decrypt the secret" rm '${decrypted}.tmp' + exit 1 fi '';