kiss: strip all trailing slashes from KISS_ROOT. thanks E5ten
This commit is contained in:
parent
e1fa886562
commit
7bc3a0eb92
6
kiss
6
kiss
|
@ -1515,10 +1515,8 @@ main() {
|
|||
# This is used enough to warrant a place here.
|
||||
uid=$(id -u)
|
||||
|
||||
# (lazily) ensure that the KISS_ROOT doesn't end with a '/'.
|
||||
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}
|
||||
|
|
Loading…
Reference in New Issue