From 7b6519e3268f3531a155acd92d4972e339655ab2 Mon Sep 17 00:00:00 2001 From: git-bruh Date: Sun, 9 Oct 2022 15:36:27 +0530 Subject: [PATCH] dir -> file --- kiss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kiss b/kiss index ff41268..4ae8302 100755 --- a/kiss +++ b/kiss @@ -1418,6 +1418,10 @@ pkg_install_files() { # b) identifiable as related to the package manager. __tmp=${_file%/*}/__kiss-tmp-$_pkg-${file##*/}-$KISS_PID + # Don't copy the file inside a directory if a directory with + # that name alredy exists. + [ -d "$_file" ] && rmdir "$_file" + # Copy the file to the destination directory with the # temporary name created above. cp -fP "$2$file" "$__tmp" &&