diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-01-11 12:33:54 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-01-11 12:33:54 +0000 |
commit | 2db933bf7670d6fab5594cde93a23da4ded7350c (patch) | |
tree | 7da5c1009b46986bd9cb89e9ce9cf557087da554 | |
parent | 653c7390a4dee332a903c4b56ef416adbf3692a8 (diff) | |
download | cpt-2db933bf7670d6fab5594cde93a23da4ded7350c.tar.gz |
kiss: Added KISS_BFD to enable the redirection of build output to silence or log builds.
FossilOrigin-Name: 796f280ac2bc9de3c7713eb5e841d4ce6e172a9d21fef695b1c8d777a7daf637
-rwxr-xr-x | kiss | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,4 @@ -#!/bin/sh -ef +#!/bin/dash -ef # # This is a simple package manager written in POSIX 'sh' for use # in KISS Linux (https://getkiss.org). @@ -495,7 +495,8 @@ pkg_build() { log "$pkg" "Starting build" # Call the build script. - "$repo_dir/build" "$pkg_dir/$pkg" || die "$pkg" "Build failed" + "$repo_dir/build" "$pkg_dir/$pkg" >"${KISS_BFD:=/dev/fd/0}" 2>&1 || + die "$pkg" "Build failed" # Copy the repository files to the package directory. # This acts as the database entry. |