fix(packages/rebuild): fix conditional logic for multiple hosts

This commit is contained in:
Mohammad Rafiq 2025-06-13 04:23:54 +08:00
parent ecad3fc68e
commit d539849088
No known key found for this signature in database

View file

@ -72,10 +72,7 @@ pkgs.writeShellScriptBin "rebuild" # sh
exit 1 exit 1
} }
done done
exit 0 elif "$TEST_SHELL"; then
fi
if "$TEST_SHELL"; then
nh os test . || { nh os test . || {
echo "Error: nixos-rebuild switch failed. Check the output for details." echo "Error: nixos-rebuild switch failed. Check the output for details."
exit 1 exit 1
@ -91,7 +88,6 @@ pkgs.writeShellScriptBin "rebuild" # sh
exit 1 exit 1
} }
else else
git diff HEAD --color=always --stat --patch
nh os switch . || { nh os switch . || {
exit 1 exit 1
} }