From 2ebeae75528ea057be5232e5f1406cea65aea571 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Mon, 26 Jun 2023 18:10:31 +0200 Subject: xetcchanges: skip symlinks Fixes #248. --- xetcchanges | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xetcchanges') diff --git a/xetcchanges b/xetcchanges index bf9899b..90eeb94 100755 --- a/xetcchanges +++ b/xetcchanges @@ -5,7 +5,8 @@ xbps-query -o ${1:-"/etc/*"} | awk 'function q(a) { gsub("\\47", "\47\\\47\47", a); return "\47"a"\47" } { sub(" \\([^)]*\\)$", "") - sub(" -> .*$", "") + if (sub(" -> .*$", "")) + next i = index($0, ": ") pkg = substr($0, 1, i-1) file = substr($0, i+2) -- cgit 1.4.1