kiss: always remove file during installation if it's not a directory, closes #95

This commit is contained in:
git-bruh 2022-10-09 14:09:13 +05:30
parent 58475f7f29
commit 130fdcf2f6
No known key found for this signature in database

3
kiss
View File

@ -1384,6 +1384,9 @@ pkg_install_files() {
# Skip directories if they already exist in the file system.
# (Think /usr/bin, /usr/lib, etc).
[ -d "$_file" ] || {
# The file could be a symlink or a regular file
rm -f "$_file"
file_rwx "$2/${file#/}"
mkdir -m "$oct" "$_file"
}