forked from kiss-community/kiss
kiss: Added more error handling.
This commit is contained in:
parent
104ed34bdc
commit
27b4037961
6
kiss
6
kiss
@ -218,7 +218,11 @@ args() {
|
||||
main() {
|
||||
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##*/}}" \
|
||||
"${src_dir:=$cac_dir/sources}" \
|
||||
|
Loading…
Reference in New Issue
Block a user