dir -> file

This commit is contained in:
git-bruh 2022-10-09 15:36:27 +05:30
parent 130fdcf2f6
commit 7b6519e326
No known key found for this signature in database

4
kiss
View File

@ -1418,6 +1418,10 @@ pkg_install_files() {
# b) identifiable as related to the package manager. # b) identifiable as related to the package manager.
__tmp=${_file%/*}/__kiss-tmp-$_pkg-${file##*/}-$KISS_PID __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 # Copy the file to the destination directory with the
# temporary name created above. # temporary name created above.
cp -fP "$2$file" "$__tmp" && cp -fP "$2$file" "$__tmp" &&