diff options
author | merakor <cem@ckyln.com> | 2020-04-26 10:14:19 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2020-04-26 10:14:19 +0000 |
commit | 05d3c0b98af5caadfeeb972432c96ef6d9297d2d (patch) | |
tree | 43f51118e55af642d2f8f73c03b3dffad52cc0f7 /kiss | |
parent | 9e82e5944e0fdcf76ceb400f1e4c83c948873dc3 (diff) | |
download | cpt-05d3c0b98af5caadfeeb972432c96ef6d9297d2d.tar.gz |
kiss: Add case for symlinks which would overwrite a dir
FossilOrigin-Name: 71a62a33c9a0b49a0ebd4285f96ee154de98f11c3c8800dbe188f49d0e9fcb33
Diffstat (limited to 'kiss')
-rwxr-xr-x | kiss | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |