kiss: Remove up to 3 trailing slashes from KISS_ROOT. Closes #165

This commit is contained in:
Dylan Araps 2020-06-21 18:08:56 +03:00
parent 929270cdbf
commit c41f7b2e0b
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 1 additions and 1 deletions

2
kiss
View File

@ -1505,7 +1505,7 @@ main() {
# 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%/} 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}