cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit 27b4037961a3fa66cd6002f0fa7016934eeb2330
parent 104ed34bdca0ce8162835839ba23b44fc951438b
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Fri, 14 Jun 2019 17:34:02 +0300

kiss: Added more error handling.

Diffstat:
Mkiss | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/kiss b/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}" \