1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-24 16:10:05 -07:00

kiss: error if HOME unset

This commit is contained in:
Dylan Araps 2020-11-06 08:52:20 +02:00
parent 3237598dc3
commit 837b43bed2
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

15
kiss
View File

@ -1657,13 +1657,14 @@ 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 \
"${mak_dir:=${KISS_TMPDIR:=$cac_dir}/build-$pid}" \ "${cac_dir:=${XDG_CACHE_HOME:-${HOME:?HOME is NULL}/.cache}/kiss}" \
"${pkg_dir:=${KISS_TMPDIR:=$cac_dir}/pkg-$pid}" \ "${mak_dir:=${KISS_TMPDIR:=$cac_dir}/build-$pid}" \
"${tar_dir:=${KISS_TMPDIR:=$cac_dir}/extract-$pid}" \ "${pkg_dir:=${KISS_TMPDIR:=$cac_dir}/pkg-$pid}" \
"${src_dir:=$cac_dir/sources}" \ "${tar_dir:=${KISS_TMPDIR:=$cac_dir}/extract-$pid}" \
"${log_dir:=$cac_dir/logs}" \ "${src_dir:=$cac_dir/sources}" \
"${bin_dir:=$cac_dir/bin}" "${log_dir:=$cac_dir/logs}" \
"${bin_dir:=$cac_dir/bin}"
args "$@" args "$@"
} }