fix(rebuild): exit rebuild script on error
This commit is contained in:
parent
60ee8b4544
commit
d09d6d37d7
1 changed files with 3 additions and 3 deletions
|
@ -54,14 +54,14 @@ pkgs.writeShellScriptBin "rebuild" # sh
|
|||
|
||||
if "$TEST_SHELL"; then
|
||||
info "Testing $1..."
|
||||
nh os test "''${args[@]}"
|
||||
nh os test "''${args[@]}" || exit 1
|
||||
git diff HEAD --color=always --stat --patch
|
||||
spawn_test_shell "$1"
|
||||
info "Rebuilding $1..."
|
||||
nh os boot "''${args[@]}"
|
||||
nh os boot "''${args[@]}" || exit 1
|
||||
else
|
||||
info "Rebuilding $1 on $HOSTNAME..."
|
||||
nh os switch "''${args[@]}"
|
||||
nh os switch "''${args[@]}" || exit 1
|
||||
fi
|
||||
|
||||
if ! "$NO_GENERATION_CHECK"; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue