mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-12-23 15:40:07 -07:00
kiss: error if HOME unset
This commit is contained in:
parent
3237598dc3
commit
837b43bed2
15
kiss
15
kiss
@ -1657,13 +1657,14 @@ main() {
|
||||
|
||||
# Create the required temporary directories and set the variables which
|
||||
# point to them.
|
||||
mkdir -p "${cac_dir:=${XDG_CACHE_HOME:-$HOME/.cache}/kiss}" \
|
||||
"${mak_dir:=${KISS_TMPDIR:=$cac_dir}/build-$pid}" \
|
||||
"${pkg_dir:=${KISS_TMPDIR:=$cac_dir}/pkg-$pid}" \
|
||||
"${tar_dir:=${KISS_TMPDIR:=$cac_dir}/extract-$pid}" \
|
||||
"${src_dir:=$cac_dir/sources}" \
|
||||
"${log_dir:=$cac_dir/logs}" \
|
||||
"${bin_dir:=$cac_dir/bin}"
|
||||
mkdir -p \
|
||||
"${cac_dir:=${XDG_CACHE_HOME:-${HOME:?HOME is NULL}/.cache}/kiss}" \
|
||||
"${mak_dir:=${KISS_TMPDIR:=$cac_dir}/build-$pid}" \
|
||||
"${pkg_dir:=${KISS_TMPDIR:=$cac_dir}/pkg-$pid}" \
|
||||
"${tar_dir:=${KISS_TMPDIR:=$cac_dir}/extract-$pid}" \
|
||||
"${src_dir:=$cac_dir/sources}" \
|
||||
"${log_dir:=$cac_dir/logs}" \
|
||||
"${bin_dir:=$cac_dir/bin}"
|
||||
|
||||
args "$@"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user