aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authornoreply@github.com <noreply@github.com>2019-07-23 06:41:18 +0000
committernoreply@github.com <noreply@github.com>2019-07-23 06:41:18 +0000
commitb1b29478ac5eca12caaefdcd6ad631996e0d5a98 (patch)
tree2716dd237cade81e0716aafcbd4dbb7bebf0ea8f /kiss
parent8629fbd9e5ae247bd9a12105a6e38bca1fb27f7b (diff)
parent6586f0865261a3db68f6542e8a7aa3f74537044b (diff)
downloadcpt-b1b29478ac5eca12caaefdcd6ad631996e0d5a98.tar.gz
Merge pull request #30 from konimex/master
cache: set sticky bit too to the children dirs FossilOrigin-Name: bfcd03715d7982d2077b5f92532d8273174f5d80f86a35232c8c11a97c41e4ad
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss7
1 files changed, 6 insertions, 1 deletions
diff --git a/kiss b/kiss
index cffb669..6daeaa5 100755
--- a/kiss
+++ b/kiss
@@ -130,7 +130,9 @@ pkg_sources() {
# Store each downloaded source in named after the package it
# belongs to. This avoid conflicts between two packages having a
# source of the same name.
- mkdir -p "$src_dir/$1" && cd "$src_dir/$1"
+ mkdir -p "$src_dir/$1"
+ chmod "$src_dir/$1"
+ cd "$src_dir/$1"
# Find the package's repository files. This needs to keep
# happening as we can't store this data in any kind of data
@@ -1028,6 +1030,9 @@ main() {
"${bin_dir:=$cac_dir/bin}" \
|| die "Couldn't create cache directories."
+ # Set sticky bit in the "permanent" directories so users can write to it.
+ chmod 1777 "$cac_dir" "$src_dir" "$bin_dir"
+
args "$@"
}