summaryrefslogtreecommitdiff
path: root/sh.conf.example
diff options
context:
space:
mode:
authorGravatar steering72532026-07-01 15:41:46 -0600
committerGravatar steering72532026-07-01 15:42:32 -0600
commit93b724af7be9056a28ac7032049bb75f800950e6 (patch)
treed1685973ca8152c16b0ce2dbde9b9341282c2c96 /sh.conf.example
parentpost-update - set umask to 0022 (diff)
rework notificaitons, add better limiting HEAD main
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
+}
+