aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2020-02-10 17:36:23 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2020-02-10 17:36:23 +0000
commit6c9c7883ad146ddecfac669a0b897cfb18e32c07 (patch)
tree7f21f400bf5aad32330064f016c88eabb011f915
parent20d01c3f39c01b548b9b2c97b58e1467b5d396fd (diff)
downloadcpt-6c9c7883ad146ddecfac669a0b897cfb18e32c07.tar.gz
kiss: Allow user to hide build output
FossilOrigin-Name: 9808140f8e69cbae355157e5650fd8280f8321a499434b86e5ec4d799dfba36b
-rwxr-xr-xkiss6
1 files changed, 3 insertions, 3 deletions
diff --git a/kiss b/kiss
index 8f2d37b..ca90964 100755
--- a/kiss
+++ b/kiss
@@ -578,12 +578,12 @@ pkg_build() {
# Call the build script, log the output to the terminal
# and to a file. There's no PIPEFAIL in POSIX shelll so
# we must resort to tricks like killing the script ourselves.
- { "$repo_dir/build" "$pkg_dir/$pkg" || {
+ { "$repo_dir/build" "$pkg_dir/$pkg" 2>&1 || {
log "$pkg" "Build failed"
log "$pkg" "Log stored to $log_dir/$pkg-$time-$pid"
pkg_clean
kill 0
- } } 2>&1 | tee "$log_dir/$pkg-$time-$pid" > /dev/tty
+ } } | tee "$log_dir/$pkg-$time-$pid"
# Delete the log file if the build succeeded to prevent
# the directory from filling very quickly with useless logs.
@@ -1289,7 +1289,7 @@ args() {
l|list) pkg_list "$@" ;;
u|update) pkg_updates ;;
s|search) for pkg; do pkg_find "$pkg" all; done ;;
- v|version) log kiss 1.4.2 ;;
+ v|version) log kiss 1.4.3 ;;
h|help|-h|--help|'')
log 'kiss [a|b|c|i|l|r|s|u|v] [pkg] [pkg] [pkg]'