From 1b3064247423a4c20237d9f7922d4248ed5fce9f Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 25 Apr 2020 13:58:51 +0300 Subject: [PATCH] kiss: Add case for symlinks which would overwrite a dir --- kiss | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kiss b/kiss index 15199fd..184009e 100755 --- a/kiss +++ b/kiss @@ -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