commit 46fba36b170796752b24562137f7fcbba995f90e parent a74ff3c8bd94ba436241382615c72efaae2c14d8 Author: mrgrouse <mrgrouse@mrgrouse.com> Date: Sat, 31 Aug 2024 14:01:48 -0400 notify.sh: add script for compatibility with tiramisu notification server Diffstat:
| A | extras/notify.sh | | | 9 | +++++++++ |
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/extras/notify.sh b/extras/notify.sh @@ -0,0 +1,9 @@ +#!/bin/bash +# unfortunately yes it does use bash specific things i just copied the script from a github issue and it worked please don't beat me up +# i could fix it to make it work with unix shell but i don't feel like doing that right now +tiramisu -o "#summary;#body" | + while read -r line; do + summary=$(cut -d ';' -f 1 <<< "$line") + body=$(cut -d ';' -f 2 <<< "$line") + birde "$summary" "$body" +done