exec: Force newlines

Allow single line commands like pre="true"
This commit is contained in:
Rodrigo Arias 2021-01-11 19:15:37 +01:00
parent 130fe39c8e
commit aeac1a6068

View File

@ -28,9 +28,12 @@ stdenv.mkDerivation {
#!/bin/sh -e
${env}
''+pre+''
${pre}
${execMethod}${nixPrefix}${stageProgram nextStage} ${argvString}
''+post+''
${post}
EOF
chmod +x $out
'';