kiss: Add case for symlinks which would overwrite a dir
This commit is contained in:
parent
83b097bef8
commit
1b30642474
4
kiss
4
kiss
|
@ -831,7 +831,9 @@ pkg_install_files() {
|
||||||
|
|
||||||
*) test "$1" "$line" ||
|
*) test "$1" "$line" ||
|
||||||
|
|
||||||
if [ -L "$2/$line" ]; then
|
if [ -L "$2/$line" ]; then
|
||||||
|
[ -d "$2/$line" ] && continue
|
||||||
|
|
||||||
cp -fPp "$2/$line" "${line%/*}"
|
cp -fPp "$2/$line" "${line%/*}"
|
||||||
chown -h root:root "$line"
|
chown -h root:root "$line"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue