kiss: Create all directories in /etc. Closes #106

This commit is contained in:
Dylan Araps 2020-02-06 10:11:22 +02:00
parent 15c6007d2d
commit e49305ec44
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

3
kiss
View File

@ -940,6 +940,9 @@ pkg_install() {
[ -d "$tar_dir/$pkg_name/etc" ] && ( [ -d "$tar_dir/$pkg_name/etc" ] && (
cd "$tar_dir/$pkg_name" cd "$tar_dir/$pkg_name"
# Create all directories beforehand.
find etc -type d -exec mkdir -p {} +
# Handle files in /etc/ based on a 3-way checksum check. # Handle files in /etc/ based on a 3-way checksum check.
find etc -type f | while read -r file; do find etc -type f | while read -r file; do
{ {