summaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
Diffstat (limited to 'bashrc')
-rwxr-xr-xbashrc12
1 files changed, 8 insertions, 4 deletions
diff --git a/bashrc b/bashrc
index 6ad45d3..f84bb64 100755
--- a/bashrc
+++ b/bashrc
@@ -41,10 +41,14 @@ tinderbox_stats() {
fi
}
-tinderbox_send_log() {
- tar cf - "${PORTAGE_LOG_FILE}" | \
- nc6 --send-only --hold-timeout=0 ${TINDERBOX_ANALYSIS_ADDR}
-}
+if [[ -n "${TINDERBOX_ANALYSIS_ADDR}" ]]; then
+ tinderbox_send_log() {
+ tar cf - "${PORTAGE_LOG_FILE}" | \
+ nc6 --send-only --hold-timeout=0 ${TINDERBOX_ANALYSIS_ADDR}
+ }
+else
+ tinderbox_send_log() { :; }
+fi
tinderbox_success() {
dent_me "${CATEGORY}/${PF} merge #succeded$(tinderbox_stats)"