cpt

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

commit 6b088d5608ccc3c8b046cf6611d6c9786d532c59
parent b991961e403880f0d3393c3299469e9a721907cb
Author: Cem Keylan <cem@ckyln.com>
Date:   Mon, 20 Apr 2020 20:51:04 +0300

kiss: display a warning for KISS_ROOT if it ends with '/'

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

diff --git a/kiss b/kiss @@ -1422,7 +1422,10 @@ main() { # Make sure that the KISS_ROOT doesn't end with a '/'. This might # break some operations. - KISS_ROOT=${KISS_ROOT%/} + [ -z "$KISS_ROOT" ] || [ "${KISS_ROOT##*/}" ] || { + log warning "Your KISS_ROOT variable shouldn't end with '/'" "!>" + KISS_ROOT=${KISS_ROOT%/} + } # This allows for automatic setup of a KISS chroot and will # do nothing on a normal system.