kiss: Added KISS_BFD to enable the redirection of build output to silence or log builds.

This commit is contained in:
Dylan Araps 2020-01-11 14:33:55 +02:00
parent b54c85a6a0
commit 8cf65bc4da
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 3 additions and 2 deletions

5
kiss
View File

@ -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.