diff options
Diffstat (limited to 'rebuild/rebuild.sh')
-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 301bd84..3244ed7 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 &>nixos-switch.log || (cat nixos-switch.log | grep --color error && exit 1) +(sudo nixos-rebuild switch --flake $DIR/flake.nix 2>&1 | tee nixos-switch.log) || (cat nixos-switch.log | grep --color error && exit 1) # Get current generation metadata current=$(nixos-rebuild list-generations | grep current) |