diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-09-10 12:43:33 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-09-10 12:43:33 +0000 |
commit | 6c682fe6a3653ada6e5e98280fc0047607c2a69c (patch) | |
tree | 8641e1c0cff42158aff83d8ba3da2846e38e6097 | |
parent | 0eb0792dd72a4052ff8cba95524ffa03ae7bfa87 (diff) | |
download | cpt-6c682fe6a3653ada6e5e98280fc0047607c2a69c.tar.gz |
KISS_ROOT: fix perm issue
FossilOrigin-Name: 6fe75af89521e6c2dc6c686df8e3550d77b3486a49f3dc5f523b990b4eee4400
-rwxr-xr-x | kiss | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1027,6 +1027,10 @@ main() { # up before we die. This occurs on 'Ctrl+C' as well as success and error. trap pkg_clean EXIT INT + # This allows for automatic setup of a KISS chroot and will + # do nothing on a normal system. + mkdir -p "${sys_db:=$KISS_ROOT/$pkg_db}" 2>/dev/null ||: + # Create the required temporary directories and set the variables # which point to them. mkdir -p "${cac_dir:=$KISS_ROOT${XDG_CACHE_HOME:-$HOME/.cache}/kiss}" \ @@ -1035,7 +1039,6 @@ main() { "${tar_dir:=$cac_dir/extract-$pid}" \ "${src_dir:=$cac_dir/sources}" \ "${bin_dir:=$cac_dir/bin}" \ - "${sys_db:=$KISS_ROOT/$pkg_db}" \ || die "Couldn't create cache directories" args "$@" |