kiss: check for directory first

This commit is contained in:
Dylan Araps 2021-07-07 10:17:19 +03:00
parent 9becb3b9a1
commit 9d34420bee
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C
1 changed files with 2 additions and 2 deletions

4
kiss
View File

@ -844,11 +844,11 @@ pkg_conflicts() {
# Filter the tarball's manifest and select only files. Resolve all
# symlinks in file paths as well.
while read -r file; do
file=$KISS_ROOT/${file#/}
# Skip all directories.
case $file in */) continue; esac
file=$KISS_ROOT/${file#/}
# Attempt to resolve symlinks by using 'cd'.
# If this fails, fallback to the file's parent
# directory.