kiss: Define KISS_TMPDIR if unset

This commit is contained in:
Dylan Araps 2020-06-06 08:06:40 +03:00
parent 1d0e0e45c6
commit 556617fcfb
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

6
kiss
View File

@ -1582,9 +1582,9 @@ main() {
# Create the required temporary directories and set the variables which # Create the required temporary directories and set the variables which
# point to them. # point to them.
mkdir -p "${cac_dir:=${XDG_CACHE_HOME:-$HOME/.cache}/kiss}" \ mkdir -p "${cac_dir:=${XDG_CACHE_HOME:-$HOME/.cache}/kiss}" \
"${mak_dir:=${KISS_TMPDIR:-$cac_dir}/build-$pid}" \ "${mak_dir:=${KISS_TMPDIR:=$cac_dir}/build-$pid}" \
"${pkg_dir:=${KISS_TMPDIR:-$cac_dir}/pkg-$pid}" \ "${pkg_dir:=${KISS_TMPDIR:=$cac_dir}/pkg-$pid}" \
"${tar_dir:=${KISS_TMPDIR:-$cac_dir}/extract-$pid}" \ "${tar_dir:=${KISS_TMPDIR:=$cac_dir}/extract-$pid}" \
"${src_dir:=$cac_dir/sources}" \ "${src_dir:=$cac_dir/sources}" \
"${log_dir:=$cac_dir/logs}" \ "${log_dir:=$cac_dir/logs}" \
"${bin_dir:=$cac_dir/bin}" "${bin_dir:=$cac_dir/bin}"