mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-12-25 08:30:05 -07:00
kiss: Fix HOME unset and other minor issues
This commit is contained in:
parent
084d9f583f
commit
3d670da1f4
18
kiss
18
kiss
@ -1636,15 +1636,15 @@ main() {
|
|||||||
# do nothing on a normal system.
|
# do nothing on a normal system.
|
||||||
mkdir -p "$KISS_ROOT/" 2>/dev/null ||:
|
mkdir -p "$KISS_ROOT/" 2>/dev/null ||:
|
||||||
|
|
||||||
# Create the required temporary directories and set the variables which
|
# Create cache directories and define variables.
|
||||||
# point to them.
|
mkdir -p \
|
||||||
mkdir -p "${cac_dir:=${XDG_CACHE_HOME:-$HOME/.cache}/kiss}" \
|
"${cac_dir:="${XDG_CACHE_HOME:-"${HOME:?HOME is null}/.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"}"
|
||||||
|
|
||||||
args "$@"
|
args "$@"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user