From aeac1a60688c179f8af311843a5824e117e385cf Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Mon, 11 Jan 2021 19:15:37 +0100 Subject: [PATCH] exec: Force newlines Allow single line commands like pre="true" --- garlic/stages/exec.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/garlic/stages/exec.nix b/garlic/stages/exec.nix index cfe4af3..eea89f1 100644 --- a/garlic/stages/exec.nix +++ b/garlic/stages/exec.nix @@ -28,9 +28,12 @@ stdenv.mkDerivation { #!/bin/sh -e ${env} - ''+pre+'' + ${pre} + ${execMethod}${nixPrefix}${stageProgram nextStage} ${argvString} - ''+post+'' + + ${post} + EOF chmod +x $out '';