forked from kiss-community/kiss
kiss: check for directory first
This commit is contained in:
parent
9becb3b9a1
commit
9d34420bee
4
kiss
4
kiss
@ -844,11 +844,11 @@ pkg_conflicts() {
|
|||||||
# Filter the tarball's manifest and select only files. Resolve all
|
# Filter the tarball's manifest and select only files. Resolve all
|
||||||
# symlinks in file paths as well.
|
# symlinks in file paths as well.
|
||||||
while read -r file; do
|
while read -r file; do
|
||||||
file=$KISS_ROOT/${file#/}
|
|
||||||
|
|
||||||
# Skip all directories.
|
# Skip all directories.
|
||||||
case $file in */) continue; esac
|
case $file in */) continue; esac
|
||||||
|
|
||||||
|
file=$KISS_ROOT/${file#/}
|
||||||
|
|
||||||
# Attempt to resolve symlinks by using 'cd'.
|
# Attempt to resolve symlinks by using 'cd'.
|
||||||
# If this fails, fallback to the file's parent
|
# If this fails, fallback to the file's parent
|
||||||
# directory.
|
# directory.
|
||||||
|
Loading…
Reference in New Issue
Block a user