about summary refs log tree commit diff
path: root/rebuild.sh
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2024-09-30 07:51:09 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2024-09-30 07:51:09 +0200
commit7c04c05f8dfb72d23b5ba20775a27b27e465d5aa (patch)
tree0fe6c1a1e382c0e0e26ff2f9b2357859c44fb315 /rebuild.sh
parent0c733ee356748d8a35b6170357a6da2631b1b449 (diff)
downloaddots-7c04c05f8dfb72d23b5ba20775a27b27e465d5aa.tar.gz
dots-7c04c05f8dfb72d23b5ba20775a27b27e465d5aa.zip
t14: 44 current 2024-09-30 07:51:02 24.05.20240928.fbca5e7 6.6.52 *
Diffstat (limited to 'rebuild.sh')
-rwxr-xr-xrebuild.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/rebuild.sh b/rebuild.sh
index b6d05a0..eaae8a9 100755
--- a/rebuild.sh
+++ b/rebuild.sh
@@ -49,7 +49,9 @@ cat nixos-switch.log | grep --color error && exit 1
 current=$(nixos-rebuild list-generations | grep current)
 
 # Commit all changes witih the generation metadata
-$FORCE
+if $FORCE; then
+    exit 0
+fi
 git commit -am "$(hostname): $current"
 
 # Back to where you were