kiss-community/kiss

When a build fails kiss logs the path of the log file with an extra slash

AndreiSva opened this issue · 5 comments

Example:
test

Is this intended behavior?

log "$pkg" "Log stored to $log_dir/$pkg-$time-$pid"

KISS can store logs in the path specified in the log_dir environment variable so if you set it to a path without a trailing slash like log_dir=/tmp, KISS would try to store the log in /tmptest-... instead of /tmp/test... so $log_dir/... prevents failure in such cases.

it appears log_dir has a trailing slash by default then? I didn't specify a custom log directory and this happens :/

The extra slash is there to ensure that the path doesn't get messed up in case the path doesn't have a trailing slash so you get double slashes with the default path

Extra slash is harmless. Please close the issue.

alright