From 060c0c68a1e2e6098e205aa65d2833b780587e27 Mon Sep 17 00:00:00 2001 From: "dylan.araps@gmail.com" Date: Wed, 31 Jul 2019 14:57:14 +0000 Subject: kiss: Make owns follow symlinks. FossilOrigin-Name: cf5ca704787f5d31edb91031903cd9dd5c88d1826c802ed1ec7c338cdb3662de --- kiss | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kiss b/kiss index f0fb0ff..ab4f36b 100755 --- a/kiss +++ b/kiss @@ -960,12 +960,12 @@ args() { for file; do # Strip 'KISS_ROOT' from the file path if passed and # follow symlinks. - file=$(realpath "$KISS_ROOT/${file##$KISS_ROOT}") + file_true=$(readlink -f "$KISS_ROOT/${file##$KISS_ROOT}") - [ -f "$file" ] || die "File '$file' doesn't exist." + [ -f "$file_true" ] || die "File '$file' doesn't exist." set +f - pkg_owns=$(grep -lFx "${file##$KISS_ROOT}" \ + pkg_owns=$(grep -lFx "${file_true##$KISS_ROOT}" \ "$KISS_ROOT/$pkg_db/"*/manifest) set -f -- cgit v1.2.3