Browse Source

Fifo: write line with \n

This is needed for eg. `read` to trigger
master
Théophile Bastian 10 months ago
parent
commit
11e5507ec9
  1. 2
      gitea_hooks/app.py

2
gitea_hooks/app.py

@ -59,7 +59,7 @@ def fifo_hooks(payload, hook_name, hook_conf): @@ -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:

Loading…
Cancel
Save