From 165e385f85c78cca76487fd3f99ac06678140aeb Mon Sep 17 00:00:00 2001
From: merakor <cem@ckyln.com>
Date: Wed, 15 Apr 2020 08:26:43 +0000
Subject: kiss: fix possible KISS_ROOT usage

FossilOrigin-Name: ae9356f6f103dacf7cb86c5e353f24546ccbb06f43b6b5d358bec75f700d6e58
---
 kiss | 4 ++++
 1 file changed, 4 insertions(+)

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 ||:
-- 
cgit v1.2.3