aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-04-26 10:14:19 +0000
committermerakor <cem@ckyln.com>2020-04-26 10:14:19 +0000
commit05d3c0b98af5caadfeeb972432c96ef6d9297d2d (patch)
tree43f51118e55af642d2f8f73c03b3dffad52cc0f7 /kiss
parent9e82e5944e0fdcf76ceb400f1e4c83c948873dc3 (diff)
downloadcpt-05d3c0b98af5caadfeeb972432c96ef6d9297d2d.tar.gz
kiss: Add case for symlinks which would overwrite a dir
FossilOrigin-Name: 71a62a33c9a0b49a0ebd4285f96ee154de98f11c3c8800dbe188f49d0e9fcb33
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss2
1 files changed, 2 insertions, 0 deletions
diff --git a/kiss b/kiss
index 458726b..2057ad2 100755
--- a/kiss
+++ b/kiss
@@ -871,6 +871,8 @@ pkg_install_files() {
install -o root -g root -m "$perms" -d "$line" ;;
*) test "$1" "$line" ||
if [ -L "$2/$line" ]; then
+ [ -d "$2/$line" ] && continue
+
cp -fPp "$2/$line" "${line%/*}"
chown -h root:root "$line"
else