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
}
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
}