From d5398490883e6338048bd116694b1cda0215302b Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Fri, 13 Jun 2025 04:23:54 +0800 Subject: [PATCH] fix(packages/rebuild): fix conditional logic for multiple hosts --- packages/rebuild/default.nix | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/rebuild/default.nix b/packages/rebuild/default.nix index 3265821..a3fe8b8 100644 --- a/packages/rebuild/default.nix +++ b/packages/rebuild/default.nix @@ -72,10 +72,7 @@ pkgs.writeShellScriptBin "rebuild" # sh exit 1 } done - exit 0 - fi - - if "$TEST_SHELL"; then + elif "$TEST_SHELL"; then nh os test . || { echo "Error: nixos-rebuild switch failed. Check the output for details." exit 1 @@ -91,7 +88,6 @@ pkgs.writeShellScriptBin "rebuild" # sh exit 1 } else - git diff HEAD --color=always --stat --patch nh os switch . || { exit 1 }