diff options
Diffstat (limited to '')
-rwxr-xr-x | scripts/pretty-rebuild | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/pretty-rebuild b/scripts/pretty-rebuild index b90fb56..9573f87 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 | sort | tail -2) + res=$(find /nix/var/nix/profiles -iname system-\* -type l -exec ls -lt \{\} + | awk '{print $9}' | head -2) if [[ ${?} -eq 0 && $(echo -E "${res}" | wc -l) -eq 2 ]]; then nvd diff $(echo -E "${res}" | xargs) |