aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss4
1 files changed, 4 insertions, 0 deletions
diff --git a/kiss b/kiss
index 25ccfe7..7ddca39 100755
--- a/kiss
+++ b/kiss
@@ -1394,6 +1394,10 @@ main() {
# This is used enough to warrant a place here.
uid=$(id -u)
+ # Make sure that the KISS_ROOT doesn't end with a '/'. This might
+ # break some operations.
+ KISS_ROOT=${KISS_ROOT%/}
+
# This allows for automatic setup of a KISS chroot and will
# do nothing on a normal system.
mkdir -p "${sys_db:=$KISS_ROOT/$pkg_db}" 2>/dev/null ||: