aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2020-02-06 08:11:22 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2020-02-06 08:11:22 +0000
commit11845fb713d54d53289e92ec9f8c9dd209259b03 (patch)
treeb7261b99ab3e2305ede32bc3383c55d3740293d1
parent8e2e355176efb271814cc7430ca8ffc4ccb60c32 (diff)
downloadcpt-11845fb713d54d53289e92ec9f8c9dd209259b03.tar.gz
kiss: Create all directories in /etc. Closes #106
FossilOrigin-Name: 055ad00c5a2e1be586a428cbeac7d45e2c43eeebdfbdeeca24cc85d9ba72d81a
-rwxr-xr-xkiss3
1 files changed, 3 insertions, 0 deletions
diff --git a/kiss b/kiss
index b108f4a..c0fca3b 100755
--- a/kiss
+++ b/kiss
@@ -940,6 +940,9 @@ pkg_install() {
[ -d "$tar_dir/$pkg_name/etc" ] && (
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.
find etc -type f | while read -r file; do
{