diff options
author | merakor <cem@ckyln.com> | 2020-04-20 17:51:04 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2020-04-20 17:51:04 +0000 |
commit | 27e7d70cc297f06b9bd10b976333c4d0a1305e0f (patch) | |
tree | 3d681a1cc36a8c52b39ecc403be4447522b180c6 | |
parent | 22100bc4f4a3c7e6e0eee88523677974f55108dc (diff) | |
download | cpt-27e7d70cc297f06b9bd10b976333c4d0a1305e0f.tar.gz |
kiss: display a warning for KISS_ROOT if it ends with '/'
FossilOrigin-Name: 35cefea72c6036d430f541c53f6cfd701b75cd85c9e576bb76c950d15e41aa70
-rwxr-xr-x | kiss | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1422,7 +1422,10 @@ main() { # Make sure that the KISS_ROOT doesn't end with a '/'. This might # break some operations. - KISS_ROOT=${KISS_ROOT%/} + [ -z "$KISS_ROOT" ] || [ "${KISS_ROOT##*/}" ] || { + log warning "Your KISS_ROOT variable shouldn't end with '/'" "!>" + KISS_ROOT=${KISS_ROOT%/} + } # This allows for automatic setup of a KISS chroot and will # do nothing on a normal system. |