ci: create gcroot only if result exists

This commit is contained in:
lassulus 2019-04-13 15:39:40 +02:00
parent 3ccac0c30e
commit 7f9b2c6f45

View File

@ -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")
if [ -n "$result" ]; then
${pkgs.nix}/bin/nix-env -p "$profile" --set "$result"
fi
''}"
],
env={