about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatryk Niedzwiedzinski <patryk@niedzwiedzinski.cyou>2024-09-29 18:06:35 +0200
committerPatryk Niedzwiedzinski <patryk@niedzwiedzinski.cyou>2024-09-29 18:06:35 +0200
commitaf1a1f5d226b346de4a7ee4b920ffd0239b308f2 (patch)
treed1e214b483d384fdcf3fcc5c23b1c72da9f18d26
parent06a637ca71018a0f22d4becbdeea820ff6a1ddef (diff)
downloaddots-af1a1f5d226b346de4a7ee4b920ffd0239b308f2.tar.gz
dots-af1a1f5d226b346de4a7ee4b920ffd0239b308f2.zip
17 current 2024-09-29 18:06:32 24.05.20240928.fbca5e7 6.6.52 *
-rwxr-xr-xrebuild/rebuild.sh2
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)