From 289f5f82c1ad9051d38788dfcb0accaa349c8350 Mon Sep 17 00:00:00 2001 From: Mark Nipper Date: Sun, 13 Oct 2024 04:17:03 -0700 Subject: Reverse rebuild script diff logic --- scripts/pretty-rebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/pretty-rebuild b/scripts/pretty-rebuild index 9573f87..4e30f4a 100755 --- a/scripts/pretty-rebuild +++ b/scripts/pretty-rebuild @@ -9,7 +9,7 @@ cd /etc/nixos && \ echo && \ nixos-rebuild list-generations | cat && \ echo && \ - res=$(find /nix/var/nix/profiles -iname system-\* -type l -exec ls -lt \{\} + | awk '{print $9}' | head -2) + res=$(find /nix/var/nix/profiles -iname system-\* -type l -exec ls -ltr \{\} + | awk '{print $9}' | tail -2) if [[ ${?} -eq 0 && $(echo -E "${res}" | wc -l) -eq 2 ]]; then nvd diff $(echo -E "${res}" | xargs) -- cgit v1.2.3