aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2019-06-18 17:00:02 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2019-06-18 17:00:02 +0000
commit690375e24af4c8c4cd8fa578a68d4b519ac46e41 (patch)
treee3a42b0b45b6ea4dbe93f0999f9b01ff7ff5ea66 /kiss
parent498d51b32fee53ec91510057b2644e5dc3c76f3c (diff)
downloadcpt-690375e24af4c8c4cd8fa578a68d4b519ac46e41.tar.gz
kiss: Make build/pkg directories unique to each kiss invocation. Closes #15
FossilOrigin-Name: 2aed0818d9e0dd757f8e5e8059b2ad4e8011065f2f46c824f1fb280a6371bc53
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss4
1 files changed, 2 insertions, 2 deletions
diff --git a/kiss b/kiss
index 34a55b0..ab86070 100755
--- a/kiss
+++ b/kiss
@@ -275,9 +275,9 @@ main() {
mkdir -p "${cac_dir:=${XDG_CACHE_HOME:=$HOME/.cache}/$kiss}" \
"${src_dir:=$cac_dir/sources}" \
- "${mak_dir:=$cac_dir/build}" \
+ "${mak_dir:=$cac_dir/build-$$}" \
"${bin_dir:=$cac_dir/bin}" \
- "${pkg_db:=${pkg_dir:=$cac_dir/pkg}/var/db/$kiss}" \
+ "${pkg_db:=${pkg_dir:=$cac_dir/pkg-$$}/var/db/$kiss}" \
"${sys_db:=${sys_dir:=$KISS_ROOT}/var/db/$kiss}" ||
die "Couldn't create directories."