From 130fdcf2f6abb941bbca5b3084e15a8836f4f537 Mon Sep 17 00:00:00 2001 From: git-bruh Date: Sun, 9 Oct 2022 14:09:13 +0530 Subject: [PATCH] kiss: always remove file during installation if it's not a directory, closes #95 --- kiss | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kiss b/kiss index a1bb3c4..ff41268 100755 --- a/kiss +++ b/kiss @@ -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" }