commit ea1777aa8a5ae1414c2c8ee1750ee596a2fc60fb
parent b2dd5198f20e7dbbe45a156e4fdb45c8a75ac539
Author: Dylan Araps <dylan.araps@gmail.com>
Date: Wed, 24 Jul 2019 02:45:40 +0300
Merge branch 'master' of github.com:kissx/kiss
Diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git 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 "$@"
}