summaryrefslogtreecommitdiff
path: root/sh.conf.example
diff options
context:
space:
mode:
Diffstat (limited to 'sh.conf.example')
-rw-r--r--sh.conf.example13
1 files changed, 11 insertions, 2 deletions
diff --git a/sh.conf.example b/sh.conf.example
index e830344..4b14fc5 100644
--- a/sh.conf.example
+++ b/sh.conf.example
@@ -1,2 +1,11 @@
-to_host="${to_host:-127.0.0.1}"
-to_port="${to_port:-1337}"
+to_host="127.0.0.1"
+to_port="1234"
+
+notify(){
+ if [ -n "$addlNotify" ]; then
+ tee >(nc -q 0 "${addlNotify%:*}" "${addlNotify##*:}") | nc -q 0 "${to_host}" "${to_port}" >/dev/null
+ else
+ nc -q 0 "${to_host}" "${to_port}" >/dev/null
+ fi
+}
+