From db0ae72f15b8d43d958e5556772e16bc0adaf441 Mon Sep 17 00:00:00 2001 From: Thomas Duckworth Date: Thu, 15 Jan 2026 18:47:59 +1100 Subject: [PATCH] Select only the latest pacman package archive Sorts with ls -v to ensure correct version ordering, and prevents bootstrap.sh from failing when ls (previously find) outputs multiple archive paths into tar that are separated by \n. --- bootstrap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap.sh b/bootstrap.sh index c7e1890..01f9abb 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -27,7 +27,7 @@ pacman-key --populate # --refresh twice to force a refresh mkdir /tmp/pacman pacman --sync --refresh --refresh --downloadonly --noconfirm pacman -tar --extract --file "$(find /var/cache/pacman/pkg -name 'pacman-*.pkg.tar.zst')" --directory /tmp/pacman +tar --extract --file "$(ls -v /var/cache/pacman/pkg/pacman-[0-9]*.pkg.tar.zst | tail -n 1)" --directory /tmp/pacman cp /tmp/pacman/etc/pacman.conf /etc/pacman.conf cp /etc/pacman.conf /etc/pacman.conf.nolinux # store a backup for use in the packages pipeline