From 35e00b62e32b86e87a9804fbd12678a04e512466 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 10 Sep 2019 15:43:34 +0300 Subject: [PATCH] KISS_ROOT: fix perm issue --- kiss | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kiss b/kiss index ea5aafe..d04f62d 100755 --- a/kiss +++ b/kiss @@ -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 "$@"