From b340283e262f7b378b7e82c81e9ac66cf1ff34ba Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 1 Sep 2019 15:02:06 +0300 Subject: [PATCH] logs: simplify temp files. --- kiss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kiss b/kiss index 96aba14..112bf9e 100755 --- a/kiss +++ b/kiss @@ -513,10 +513,10 @@ pkg_build() { # Call the build script and create a temporary file on error. # This is the simplest way to mimic "pipefail" in POSIX sh as # you cannot exit from within a pipe. - { "$repo_dir/build" "$pkg_dir/$pkg" || :> "$pkg-err"; } | tee log + { "$repo_dir/build" "$pkg_dir/$pkg" || :> err; } | tee log # If the file exists the build errored, die here and save the log. - [ -f "$pkg-err" ] && { + [ -f err ] && { cp -f log "$log_dir/$pkg-$date.log" die "[$pkg] Build failed" \