forked from kiss-community/kiss
kiss: Allow user to hide build output
This commit is contained in:
parent
e2d233fdc8
commit
99f34f547b
6
kiss
6
kiss
@ -578,12 +578,12 @@ pkg_build() {
|
|||||||
# Call the build script, log the output to the terminal
|
# Call the build script, log the output to the terminal
|
||||||
# and to a file. There's no PIPEFAIL in POSIX shelll so
|
# and to a file. There's no PIPEFAIL in POSIX shelll so
|
||||||
# we must resort to tricks like killing the script ourselves.
|
# 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" "Build failed"
|
||||||
log "$pkg" "Log stored to $log_dir/$pkg-$time-$pid"
|
log "$pkg" "Log stored to $log_dir/$pkg-$time-$pid"
|
||||||
pkg_clean
|
pkg_clean
|
||||||
kill 0
|
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
|
# Delete the log file if the build succeeded to prevent
|
||||||
# the directory from filling very quickly with useless logs.
|
# the directory from filling very quickly with useless logs.
|
||||||
@ -1289,7 +1289,7 @@ args() {
|
|||||||
l|list) pkg_list "$@" ;;
|
l|list) pkg_list "$@" ;;
|
||||||
u|update) pkg_updates ;;
|
u|update) pkg_updates ;;
|
||||||
s|search) for pkg; do pkg_find "$pkg" all; done ;;
|
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|'')
|
h|help|-h|--help|'')
|
||||||
log 'kiss [a|b|c|i|l|r|s|u|v] [pkg] [pkg] [pkg]'
|
log 'kiss [a|b|c|i|l|r|s|u|v] [pkg] [pkg] [pkg]'
|
||||||
|
Loading…
Reference in New Issue
Block a user