diff options
-rwxr-xr-x | rebuild/rebuild.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rebuild/rebuild.sh b/rebuild/rebuild.sh index 9738dd3..6e4bbca 100755 --- a/rebuild/rebuild.sh +++ b/rebuild/rebuild.sh @@ -34,7 +34,7 @@ git diff -U0 '*' echo "NixOS Rebuilding..." # Rebuild, output simplified errors, log trackebacks -sudo nixos-rebuild switch --flake $DIR/flake.nix 2>&1 | tee nixos-switch.log +sudo nixos-rebuild switch --flake $DIR/flake.nix 2>&1 | tee nixos-switch.log || exit 1 # Get current generation metadata current=$(nixos-rebuild list-generations | grep current) |