From 450b28096fa23b8e570645eceff7e3dfe902d020 Mon Sep 17 00:00:00 2001 From: Peritia Date: Thu, 7 Aug 2025 13:20:33 +0200 Subject: [PATCH] fix log error --- nyx/nyx-rebuild.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nyx/nyx-rebuild.nix b/nyx/nyx-rebuild.nix index 44fb2f4..ec7e71d 100644 --- a/nyx/nyx-rebuild.nix +++ b/nyx/nyx-rebuild.nix @@ -264,6 +264,7 @@ gen=$(nixos-rebuild list-generations | grep True | awk '{$1=$1};1') stats_gen=$(echo "$gen" | awk '{printf "%04d\n", $1}') finish_nyx_rebuild >> "$build_log" +$git_bin add "$build_log" $git_bin add -u $git_bin commit -m "Rebuild: $gen" || true @@ -271,6 +272,7 @@ cd "$log_dir" final_log="$log_dir/nixos-gen_''${stats_gen}-switch-''${timestamp}.log" mv "$build_log" "$final_log" $git_bin add "$log_dir" +$git_bin add "$build_log" $git_bin commit -m "log for $gen" || true # === FINAL PUSH LOGS ===