1234567891011121314151617181920212223242526272829303132 |
- #!/bin/bash
- distantrepos='https://figureslibres.io/gogs/bachir/TDSM-commissaires.git'
- echo "Sync book"
- git config --global credential.helper cache
- git config --global credential.helper 'cache --timeout=7200'
- folder='book-src'
- if [ -d $folder/.git ];
- then
-
- echo "Pull $repo"
- git -C $folder pull origin master
- else
-
- echo "clone $repo"
- git clone $distantrepos $folder
- fi
|