summaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gmail.com>2010-10-15 20:23:00 +0200
committerDiego Elio Pettenò <flameeyes@gmail.com>2010-10-15 20:23:00 +0200
commitfacfdb9ee6d55c950efffcfb380888de851c3450 (patch)
tree6098cd832a9f9fd79c65331de596a8ce4284ad4f /bashrc
parentRemove lafilefixer, no longer needed with Portage 2.1.9. (diff)
downloadflameeyes-tinderbox-facfdb9ee6d55c950efffcfb380888de851c3450.tar.gz
flameeyes-tinderbox-facfdb9ee6d55c950efffcfb380888de851c3450.tar.bz2
flameeyes-tinderbox-facfdb9ee6d55c950efffcfb380888de851c3450.zip
Don't try to send dents if no BTI_ACCOUNT is set.
Since my tinderbox has been banned from identi.ca, I have no reason to keep sending dents, it just wastes my time.
Diffstat (limited to 'bashrc')
-rwxr-xr-xbashrc10
1 files changed, 7 insertions, 3 deletions
diff --git a/bashrc b/bashrc
index 7059d2b..043c7ee 100755
--- a/bashrc
+++ b/bashrc
@@ -16,9 +16,13 @@
# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
# SOFTWARE.
-dent_me() {
- echo "$@" | bti ${TINDERBOX_PROXY:+--proxy "${TINDERBOX_PROXY}"} --host "${BTI_HOST}" --account "${BTI_ACCOUNT}" --password "${BTI_PASSWORD}" --background
-}
+if [[ -n ${BTI_ACCOUNT} ]]; then
+ dent_me() {
+ echo "$@" | bti ${TINDERBOX_PROXY:+--proxy "${TINDERBOX_PROXY}"} --host "${BTI_HOST}" --account "${BTI_ACCOUNT}" --password "${BTI_PASSWORD}" --background
+ }
+else
+ dent_me() { :; }
+fi
pre_pkg_setup() {
dent_me "${CATEGORY}/${PF} merge starting"