aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2019-09-01 12:02:06 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2019-09-01 12:02:06 +0000
commit117dd1e13e5f4ed0a05ea51e08dc7ad643fea474 (patch)
tree31a99ef6868a1c13a42219db924984f60213c79c
parentab0acd059481ea0b2dc9dfc9cd5ee08aaa676212 (diff)
downloadcpt-117dd1e13e5f4ed0a05ea51e08dc7ad643fea474.tar.gz
logs: simplify temp files.
FossilOrigin-Name: bd8d4b803dc00652b3a6a127cf28c3e405dc9a8129818682ff978f4b7be935d5
-rwxr-xr-xkiss4
1 files 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" \