fix(packages/rebuild): fix conditional logic for multiple hosts
This commit is contained in:
parent
ecad3fc68e
commit
d539849088
1 changed files with 1 additions and 5 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue