mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-11-04 14:05:41 -07:00
kiss: Added more error handling.
This commit is contained in:
parent
104ed34bdc
commit
27b4037961
6
kiss
6
kiss
@ -218,7 +218,11 @@ args() {
|
|||||||
main() {
|
main() {
|
||||||
trap 'rm -rf -- "$mak_dir" "$pkg_dir"' EXIT INT
|
trap 'rm -rf -- "$mak_dir" "$pkg_dir"' EXIT INT
|
||||||
|
|
||||||
[ -z "$KISS_PATH" ] && die "Set \$KISS_PATH to a repository location."
|
[ -z "$KISS_PATH" ] &&
|
||||||
|
die "Set \$KISS_PATH to a repository location."
|
||||||
|
|
||||||
|
[ -z "$KISS_ROOT" ] && [ "$(id -u)" != 0 ] &&
|
||||||
|
die "\$KISS_ROOT is set to '/' so you must be root."
|
||||||
|
|
||||||
mkdir -p "${cac_dir:=${XDG_CACHE_HOME:=$HOME/.cache}/${0##*/}}" \
|
mkdir -p "${cac_dir:=${XDG_CACHE_HOME:=$HOME/.cache}/${0##*/}}" \
|
||||||
"${src_dir:=$cac_dir/sources}" \
|
"${src_dir:=$cac_dir/sources}" \
|
||||||
|
Loading…
Reference in New Issue
Block a user