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).
This commit is contained in:
Rodrigo Arias 2021-01-11 18:29:30 +01:00
parent 5c2bd13c3d
commit 130fe39c8e

View File

@ -25,7 +25,7 @@ stdenv.mkDerivation {
phases = [ "installPhase" ]; phases = [ "installPhase" ];
installPhase = '' installPhase = ''
cat > $out <<'EOF' cat > $out <<'EOF'
#!/bin/sh #!/bin/sh -e
${env} ${env}
''+pre+'' ''+pre+''