From c320af4ebbaaecbcb4bcd7e7a1934df8aa718358 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 12 May 2020 10:42:54 +0300 Subject: [PATCH] kiss: Install fixes when using KISS_ROOT --- kiss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kiss b/kiss index 1d55d5d..c0e1a95 100755 --- a/kiss +++ b/kiss @@ -1033,7 +1033,7 @@ pkg_install_files() { */) # Skip directories if they already exist in the file system. # (Think /usr/bin, /usr/lib, etc). - [ -d "$line" ] || mkdir -m "$oct" "$KISS_ROOT/$line" + [ -d "$KISS_ROOT/$line" ] || mkdir -m "$oct" "$KISS_ROOT/$line" ;; *) test "$1" "$KISS_ROOT/$line" || @@ -1045,7 +1045,7 @@ pkg_install_files() { # (Think baselayout being updated) [ -d "$KISS_ROOT/$line" ] && continue - cp -fPp "$2/$line" "$KISS_ROOT/${line%/*}" + cp -fPp "$2/$line" "$KISS_ROOT/$line" chown -h root:root "$KISS_ROOT/$line" else cp -f "$2/$line" "$KISS_ROOT/$line"