diff --git a/README.md b/README.md index a7c63cd..6112306 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ Notes: * currently, folders are always watched recursively ## Usage -`gitwatch.sh [-r [-b ]]`
+`gitwatch.sh [-r [-b ]] `
It is expected that the watched file/directory are already in a git repository (the script will not create a repository). If a folder is being watched, this will be watched fully recursively; this also means that all files and sub-folders added and removed from the directory will always be added and removed in the next commit. The `.git` folder will be excluded from the `inotifywait` call so changes to it will not cause unnecessary triggering of the script. ### Starting on Boot diff --git a/gitwatch@.service b/gitwatch@.service index 6d22765..339ae7c 100644 --- a/gitwatch@.service +++ b/gitwatch@.service @@ -3,7 +3,7 @@ Description=Watch file or directory and git commit all changes. run with: system [Service] Environment="SCRIPT_ARGS=%I" -ExecStart=/usr/bin/gitwatch $SCRIPT_ARGS +ExecStart=/usr/local/bin/gitwatch $SCRIPT_ARGS ExecStop=/bin/true [Install]