diff options
author | tv <tv@krebsco.de> | 2019-04-17 17:17:25 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2019-04-17 17:17:25 +0200 |
commit | 20fa5109afc6263a023005e7a40fbf6c14b7ca93 (patch) | |
tree | 572727d1dc699545e416e8cb199210a3f582fd44 /krebs/3modules/ci.nix | |
parent | d0883b3d3e44051fa569f4bc205abc557b0466e2 (diff) | |
parent | 7083200810b4cca19b02550e1ec2a000aa686b63 (diff) |
Merge remote-tracking branch 'prism/master'
Diffstat (limited to 'krebs/3modules/ci.nix')
-rw-r--r-- | krebs/3modules/ci.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/krebs/3modules/ci.nix b/krebs/3modules/ci.nix index a47dbe611..244de1a0d 100644 --- a/krebs/3modules/ci.nix +++ b/krebs/3modules/ci.nix @@ -108,10 +108,12 @@ let name=str(new_step), command=[ "${pkgs.writeDash "build-stepper.sh" '' - set -efu + set -xefu profile=${shell.escape profileRoot}/$build_name result=$("$build_script") - ${pkgs.nix}/bin/nix-env -p "$profile" --set "$result" + if [ -n "$result" ]; then + ${pkgs.nix}/bin/nix-env -p "$profile" --set "$result" + fi ''}" ], env={ |