2
0
mirror of https://github.com/gitwatch/gitwatch synced 2024-11-15 06:12:52 +00:00
gitwatch/gitwatch@.service
Kieran Collienne 09b0f1ae0a
fix sending all script arguments as arg 1 (#125)
Co-authored-by: Kieran Collienne <kelmes@duck.com>
2024-04-12 07:00:03 -05:00

11 lines
349 B
Desktop File

[Unit]
Description=Watch file or directory and git commit all changes. run with: systemctl --user --now enable gitwatch@$(systemd-escape "'-r url/to/repository' /path/to/folder").service
[Service]
Environment="SCRIPT_ARGS=%I"
ExecStart=/usr/bin/bash -c "/usr/local/bin/gitwatch ${SCRIPT_ARGS}"
ExecStop=/bin/true
[Install]
WantedBy=default.target