From 8cf65bc4da559289d797b9da2b3e10692440fbad Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 11 Jan 2020 14:33:55 +0200 Subject: [PATCH] kiss: Added KISS_BFD to enable the redirection of build output to silence or log builds. --- kiss | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kiss b/kiss index 14e136a..7686353 100755 --- a/kiss +++ b/kiss @@ -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.