forked from kiss-community/kiss
kiss: fix handling of /etc. closes #175
This commit is contained in:
parent
6e26703abb
commit
18c79222b8
8
kiss
8
kiss
@ -1004,11 +1004,13 @@ pkg_remove_files() {
|
||||
pkg_etc() (
|
||||
[ -d "$tar_dir/$pkg_name/etc" ] || return 0
|
||||
|
||||
# Create all directories beforehand.
|
||||
cd "$KISS_ROOT/"
|
||||
find etc -type d -exec mkdir -p {} +
|
||||
cd "$tar_dir/$pkg_name"
|
||||
|
||||
# Create all directories beforehand.
|
||||
find etc -type d | while read -r dir; do
|
||||
mkdir -p "$KISS_ROOT/$dir"
|
||||
done
|
||||
|
||||
# Handle files in /etc/ based on a 3-way checksum check.
|
||||
find etc ! -type d | sort | while read -r file; do
|
||||
i=$((i + 1))
|
||||
|
Loading…
Reference in New Issue
Block a user