From 130fe39c8ef98fd98383c4e640c5307f34695b6c Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Mon, 11 Jan 2021 18:29:30 +0100 Subject: [PATCH] exec: Abort on error We need exit on the first error, as otherwise we cannot track a bad execution when no exec is done (when post is not empty). --- garlic/stages/exec.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/garlic/stages/exec.nix b/garlic/stages/exec.nix index 80db4b8..cfe4af3 100644 --- a/garlic/stages/exec.nix +++ b/garlic/stages/exec.nix @@ -25,7 +25,7 @@ stdenv.mkDerivation { phases = [ "installPhase" ]; installPhase = '' cat > $out <<'EOF' - #!/bin/sh + #!/bin/sh -e ${env} ''+pre+''