1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-22 23:20:06 -07:00

ensure KISS_ROOT doesn't end in a /

This commit is contained in:
Dylan Araps 2020-11-06 08:48:15 +02:00
parent a2041ee0a7
commit e98d159366
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

5
kiss
View File

@ -1645,9 +1645,8 @@ 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 if left unchecked.
KISS_ROOT=${KISS_ROOT%/} KISS_ROOT=${KISS_ROOT%/} KISS_ROOT=${KISS_ROOT%/}
# Ensure that the KISS_ROOT doesn't end with a '/'.
KISS_ROOT=${KISS_ROOT%"${KISS_ROOT##*[!/]}"}
# Define some paths which we will then use throughout the script.
sys_db=$KISS_ROOT/${pkg_db:=var/db/kiss/installed}