From 4d89ec4d032d52fce4bfc3b58777ef18e7eaf5b0 Mon Sep 17 00:00:00 2001 From: Adam Rabjerg Date: Tue, 18 Oct 2022 16:56:45 +0200 Subject: [PATCH] Testing signed commit. --- rebuild.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/rebuild.sh b/rebuild.sh index 74c3b2c..8785a29 100755 --- a/rebuild.sh +++ b/rebuild.sh @@ -1,11 +1,8 @@ #!/usr/bin/env bash -git commit +set -e -if [[ $? -ne 0 ]]; then - echo "Git commit not successful, will not rebuild before commit is complete." - exit 1 -fi +git commit echo "Copying configurations to etc and rebuilding." sudo cp /home/adam/nixos-configurations/*.nix /etc/nixos/.