diff options
author | merakor <cem@ckyln.com> | 2020-04-15 08:26:43 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2020-04-15 08:26:43 +0000 |
commit | 165e385f85c78cca76487fd3f99ac06678140aeb (patch) | |
tree | 5073fc5bff154747ca3a7003f9998f8fe5f8efc4 | |
parent | db35d1ddd7afe2ce40ebdedca80ecbe3c5b358ca (diff) | |
download | cpt-165e385f85c78cca76487fd3f99ac06678140aeb.tar.gz |
kiss: fix possible KISS_ROOT usage
FossilOrigin-Name: ae9356f6f103dacf7cb86c5e353f24546ccbb06f43b6b5d358bec75f700d6e58
-rwxr-xr-x | kiss | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 ||: |