aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Nipper <nipsy@bitgnome.net>2024-10-13 00:36:17 -0700
committerMark Nipper <nipsy@bitgnome.net>2024-10-13 00:36:17 -0700
commit756aa2b1b576f464cb78c64d2f6a9fe4276b65e7 (patch)
tree0b56f9b06a9332e2cf08b7c644e82366cfaa47ed
parent7f82bd745c24bcc7c6426ac78d81c06dead3bd0d (diff)
downloadnix-756aa2b1b576f464cb78c64d2f6a9fe4276b65e7.tar
nix-756aa2b1b576f464cb78c64d2f6a9fe4276b65e7.tar.gz
nix-756aa2b1b576f464cb78c64d2f6a9fe4276b65e7.tar.bz2
nix-756aa2b1b576f464cb78c64d2f6a9fe4276b65e7.tar.lz
nix-756aa2b1b576f464cb78c64d2f6a9fe4276b65e7.tar.xz
nix-756aa2b1b576f464cb78c64d2f6a9fe4276b65e7.tar.zst
nix-756aa2b1b576f464cb78c64d2f6a9fe4276b65e7.zip
Fix script logic
Diffstat (limited to '')
-rwxr-xr-xscripts/pretty-rebuild2
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)