From b8c5fd4dd8bfd09446576f085124b39b73c19521 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Tue, 21 Apr 2026 01:23:47 +0100 Subject: fix(etc-drift): match real pacman -Qkk "backup file:" prefix format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pacman emits lines like "backup file: : ()", not the "(Modified backup file)" suffix format. Anchor the path extraction to /etc/ to avoid catching stderr warnings interleaved into a line. Also extend etc/.ignore with /etc/{passwd,group,shells} — system-managed identity files that surfaced in the new drift output. --- justfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'justfile') diff --git a/justfile b/justfile index a5aa2aa..5131474 100644 --- a/justfile +++ b/justfile @@ -210,7 +210,7 @@ etc-drift: echo "=== /etc drift ===" echo "--- modified package configs ---" - { pacman -Qkk 2>/dev/null | grep -oP ':\s+\K/\S+(?=\s+\((Modified|Altered) backup file\))' || true; } | sort -u \ + { pacman -Qkk 2>/dev/null | grep -oP '^backup file:\s+[^:]+:\s+\K/etc/\S+' || true; } | sort -u \ | while IFS= read -r p; do keep "$p" && echo " modified: $p"; :; done echo "--- user-created (no owning package) ---" -- cgit v1.2.3-70-g09d2