mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-12-23 23:50:05 -07:00
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
Block a user