aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/pretty-rebuild
diff options
context:
space:
mode:
authorMark Nipper <nipsy@bitgnome.net>2024-10-13 04:17:03 -0700
committerMark Nipper <nipsy@bitgnome.net>2024-10-13 04:17:03 -0700
commit289f5f82c1ad9051d38788dfcb0accaa349c8350 (patch)
tree13aa6bdf6854064778b39a0d19486225ddb4bea5 /scripts/pretty-rebuild
parent10c87e76818619906016a8135f950d5349a739f9 (diff)
downloadnix-289f5f82c1ad9051d38788dfcb0accaa349c8350.tar
nix-289f5f82c1ad9051d38788dfcb0accaa349c8350.tar.gz
nix-289f5f82c1ad9051d38788dfcb0accaa349c8350.tar.bz2
nix-289f5f82c1ad9051d38788dfcb0accaa349c8350.tar.lz
nix-289f5f82c1ad9051d38788dfcb0accaa349c8350.tar.xz
nix-289f5f82c1ad9051d38788dfcb0accaa349c8350.tar.zst
nix-289f5f82c1ad9051d38788dfcb0accaa349c8350.zip
Reverse rebuild script diff 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 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)