From 11e5507ec9f7dd467e9c272f66e450315bf4a402 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Bastian?= Date: Sun, 17 Apr 2022 18:39:23 +0200 Subject: [PATCH] Fifo: write line with \n This is needed for eg. `read` to trigger --- gitea_hooks/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitea_hooks/app.py b/gitea_hooks/app.py index fc9482c..131a7eb 100644 --- a/gitea_hooks/app.py +++ b/gitea_hooks/app.py @@ -59,7 +59,7 @@ def fifo_hooks(payload, hook_name, hook_conf): """Fifo web handler -- write 1 to a unix fifo""" try: with open(hook_conf["fifo_path"], "w") as fifo: - fifo.write("1") + fifo.write("1\n") except FileNotFoundError: return "No such fifo", 500 except PermissionError: