forked from kiss-community/kiss
kiss: always remove file during installation if it's not a directory, closes #95
This commit is contained in:
parent
58475f7f29
commit
130fdcf2f6
3
kiss
3
kiss
@ -1384,6 +1384,9 @@ pkg_install_files() {
|
|||||||
# Skip directories if they already exist in the file system.
|
# Skip directories if they already exist in the file system.
|
||||||
# (Think /usr/bin, /usr/lib, etc).
|
# (Think /usr/bin, /usr/lib, etc).
|
||||||
[ -d "$_file" ] || {
|
[ -d "$_file" ] || {
|
||||||
|
# The file could be a symlink or a regular file
|
||||||
|
rm -f "$_file"
|
||||||
|
|
||||||
file_rwx "$2/${file#/}"
|
file_rwx "$2/${file#/}"
|
||||||
mkdir -m "$oct" "$_file"
|
mkdir -m "$oct" "$_file"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user