diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-07-31 14:57:14 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-07-31 14:57:14 +0000 |
commit | 060c0c68a1e2e6098e205aa65d2833b780587e27 (patch) | |
tree | b4c793beb17549d2382240800ca5954a7f73b005 /kiss | |
parent | 42e4e617bd8de0568d4eb5d64cf75f76b3a81301 (diff) | |
download | cpt-060c0c68a1e2e6098e205aa65d2833b780587e27.tar.gz |
kiss: Make owns follow symlinks.
FossilOrigin-Name: cf5ca704787f5d31edb91031903cd9dd5c88d1826c802ed1ec7c338cdb3662de
Diffstat (limited to 'kiss')
-rwxr-xr-x | kiss | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |