about summary refs log tree commit diff
path: root/rebuild
diff options
context:
space:
mode:
Diffstat (limited to 'rebuild')
-rwxr-xr-xrebuild/rebuild.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/rebuild/rebuild.sh b/rebuild/rebuild.sh
index dfbb7c3..daa190e 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 2>&1 | tee nixos-switch.log || exit 2 
+(sudo nixos-rebuild switch --flake $DIR 2>&1 | tee nixos-switch.log) || exit 2 
 
 # Get current generation metadata
 current=$(nixos-rebuild list-generations | grep current)