aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2019-07-23 23:45:39 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2019-07-23 23:45:39 +0000
commit34df14104725fd1afa863bb8a352c9da4ae89e27 (patch)
tree6b84a26466db01fb0c92c48cd4bdc531588d742d
parentaec53c3a13818307cde367ba6e6c6e7f572c946a (diff)
parentb1b29478ac5eca12caaefdcd6ad631996e0d5a98 (diff)
downloadcpt-34df14104725fd1afa863bb8a352c9da4ae89e27.tar.gz
Merge branch 'master' of github.com:kissx/kiss
FossilOrigin-Name: 4727903649ed67fbf7255745092b5ba7c94c6d1a822e7129b05bafdafeed7911
-rwxr-xr-xkiss7
1 files changed, 6 insertions, 1 deletions
diff --git a/kiss b/kiss
index 8ad10a6..f43c2b5 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
@@ -1039,6 +1041,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 "$@"
}