kiss: Add case for symlinks which would overwrite a dir

This commit is contained in:
Dylan Araps 2020-04-25 13:58:51 +03:00
parent 83b097bef8
commit 1b30642474
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

4
kiss
View File

@ -831,7 +831,9 @@ pkg_install_files() {
*) test "$1" "$line" ||
if [ -L "$2/$line" ]; then
if [ -L "$2/$line" ]; then
[ -d "$2/$line" ] && continue
cp -fPp "$2/$line" "${line%/*}"
chown -h root:root "$line"
else