That should fix the issues with commit failing loudly

This commit is contained in:
TheWanderingCrow 2024-10-03 14:22:39 -04:00
parent 4b1f90cf24
commit 5bbd203d45

View file

@ -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;