1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-24 16:10:05 -07:00

kiss: strip all trailing slashes from KISS_ROOT. thanks E5ten

This commit is contained in:
Dylan Araps 2020-09-23 21:56:30 +03:00
parent e1fa886562
commit 7bc3a0eb92
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

6
kiss
View File

@ -1515,10 +1515,8 @@ main() {
# This is used enough to warrant a place here. # This is used enough to warrant a place here.
uid=$(id -u) uid=$(id -u)
# (lazily) ensure that the KISS_ROOT doesn't end with a '/'. # Ensure that the KISS_ROOT doesn't end with a '/'.
KISS_ROOT=${KISS_ROOT%/} KISS_ROOT=${KISS_ROOT%"${KISS_ROOT##*[!/]}"}
KISS_ROOT=${KISS_ROOT%/}
KISS_ROOT=${KISS_ROOT%/}
# Define some paths which we will then use throughout the script. # Define some paths which we will then use throughout the script.
sys_db=$KISS_ROOT/${pkg_db:=var/db/kiss/installed} sys_db=$KISS_ROOT/${pkg_db:=var/db/kiss/installed}