From d5a5fdb800dc96415b6d14e998521162334c8e55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 13 Nov 2023 03:05:32 +0100 Subject: [PATCH] packages: use exit 2 --- packages.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages.nix b/packages.nix index 8a4050f4..da361d46 100644 --- a/packages.nix +++ b/packages.nix @@ -118,7 +118,7 @@ lib.attrsets.mapAttrs if [[ $(ssh ${target} cat /etc/hostname) != ${name} ]]; then echo "hostname of the target machine does not match, please manually investigate!" echo " $(ssh ${target} cat /etc/hostname) != ${name}" - exit 1 + exit 2 fi nix copy --no-check-sigs --to ssh-ng://${target} ${inputPaths} nix copy --no-check-sigs --derivation --to ssh-ng://${target} ${toplevelDrvPath} @@ -222,7 +222,7 @@ lib.attrsets.mapAttrs if [[ $(cat /etc/hostname) != ${name} ]]; then echo "hostname of the target machine does not match, please manually investigate!" echo " $(ssh ${target} cat /etc/hostname) != ${name}" - exit 1 + exit 2 fi ${discardStringCtx hostConfig.nix.package}/bin/nix-env -p /nix/var/nix/profiles/system --set ${toplevelOutPath} ${toplevelOutPath}/bin/switch-to-configuration "''${@:-switch}" @@ -239,7 +239,7 @@ lib.attrsets.mapAttrs ${lib.optionalString (!builtins.elem (hostConfig.c3d2.deployment.server or null) [ "server9" "server10" ]) '' echo "MicroVM must be configured to proper server" >&2 - exit 1 + exit 2 ''} ${hostConfig.system.build.copyToServer} ${declaredRunnerDrvPath}