Fix systemd-escape invocation to parse flags correctly (#127)

Without `--` systemd-escape tries to parse gitwatch flags as its own flags (try with `-s` as first gitwatch flag).
master
Florian Meißner 4 weeks ago committed by GitHub
parent e17d9cf02b
commit 4b0b310859
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1,5 +1,5 @@
[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
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"

Loading…
Cancel
Save