kiss: Tell user about log file on error

This commit is contained in:
Dylan Araps 2020-01-30 14:53:03 +02:00
parent 0a64dc1808
commit 5c601bd695
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 1 additions and 0 deletions

1
kiss
View File

@ -569,6 +569,7 @@ pkg_build() {
# we must resort to tricks like killing the script ourselves.
{ "$repo_dir/build" "$pkg_dir/$pkg" || {
log "$pkg" "Build failed"
log "$pkg" "Log stored to $log_dir/$pkg-$time-$pid"
pkg_clean
kill 0
} } 2>&1 | tee "$log_dir/$pkg-$time-$pid" > /dev/tty