Browse Source

increase watch time to 10 seconds (because bash can be slow) and add comments about caching for git push

master
Markus Bergholz 2 years ago
parent
commit
79f2a71104
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      bash/gaap.sh

+ 6
- 1
bash/gaap.sh View File

@@ -1,5 +1,10 @@
#!/bin/bash
# git autocommit and push
#
# use git caching or ssh key auth
# git config --global credential.helper cache
# git config --global credential.helper 'cache --timeout=3600'


if test "$#" -ne 1; then
echo "Target dir is required!"
@@ -27,5 +32,5 @@ if git -C $TARGETDIR rev-parse; then
}
export -f scan_and_commit

watch -n 5 scan_and_commit
watch -n 10 scan_and_commit
fi

Loading…
Cancel
Save