Merge pull request #328 from kiwix/fix_git_deploy

Fix deployement of git repositories.
This commit is contained in:
Matthieu Gautier 2019-05-29 15:18:31 +02:00 committed by GitHub
commit 854a21367a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -69,12 +69,13 @@ then
done done
fi fi
cd ${EXPORT_DIR}/GIT
GIT_REPOS=$(ls -d */) GIT_REPOS=$(ls -d */)
if [[ "x$GIT_REPOS" != "x" ]] if [[ "x$GIT_REPOS" != "x" ]]
then then
for repo in $GIT_REPOS for repo in $GIT_REPOS
do do
(cd repo; (cd $repo;
GIT_SSH_COMMAND"ssh -o StrictHostKeyChecking=no -i $SSH_KEY" git push GIT_SSH_COMMAND"ssh -o StrictHostKeyChecking=no -i $SSH_KEY" git push
) )
done done