From 5bbd203d452ff7a5c7932940db94a988bbeaefe6 Mon Sep 17 00:00:00 2001 From: TheWanderingCrow Date: Thu, 3 Oct 2024 14:22:39 -0400 Subject: [PATCH] That should fix the issues with commit failing loudly --- modules/users/crow/user.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/users/crow/user.nix b/modules/users/crow/user.nix index 9649ca5..80f98c3 100644 --- a/modules/users/crow/user.nix +++ b/modules/users/crow/user.nix @@ -18,7 +18,7 @@ startAt = [ "*:0/5" ]; - script = "cd /home/crow/Notes\ngit pull\ngit add .\ngit commit -am 'automatic backup'\ngit push"; + script = "cd /home/crow/Notes\ngit pull\ngit add .\ngit diff-index --quiet HEAD || git commit -am 'automatic backup'\ngit push"; }; config.home-manager.users.crow = lib.mkIf config.users.crow.home.enable ./home.nix;