Removed now useless call to git pull.

pull/202/head
Cédric Bonhomme 2019-11-11 10:57:08 +01:00
parent 0cc498dcb9
commit d4b32b1c16
No known key found for this signature in database
GPG Key ID: A1CB94DE57B7A70D
1 changed files with 0 additions and 23 deletions

View File

@ -33,12 +33,6 @@ pull_if_exists() {
migrate_module() { migrate_module() {
if [[ -d $2 ]]; then if [[ -d $2 ]]; then
$1 ./vendor/robmorgan/phinx/bin/phinx migrate -c ./$2/migrations/phinx.php $1 ./vendor/robmorgan/phinx/bin/phinx migrate -c ./$2/migrations/phinx.php
if [[ -d "${2}/hooks" && -f "${2}/.git/hooks/pre-commit.sh" ]]; then
cd $2/.git/hooks
ln -s ../../hooks/pre-commit.sh pre-commit 2>/dev/null
chmod u+x pre-commit
cd $2
fi
fi fi
} }
@ -90,23 +84,7 @@ fi
currentPath=`pwd` currentPath=`pwd`
pathCore="module/Monarc/Core" pathCore="module/Monarc/Core"
if [ -d $pathCore ]; then
pull_if_exists $pathCore
else
pathCore="vendor/monarc/core"
fi
pathBO="module/Monarc/BackOffice"
if [ -d $pathBO ]; then
pull_if_exists $pathBO
else
pathBO="vendor/monarc/backoffice"
fi
pathFO="module/Monarc/FrontOffice" pathFO="module/Monarc/FrontOffice"
if [ -d $pathFO ]; then
pull_if_exists $pathFO
else
pathFO="vendor/monarc/frontoffice"
fi
if [[ $bypass -eq 0 ]]; then if [[ $bypass -eq 0 ]]; then
if [ -e data/backup/credentialsmysql.cnf ]; then if [ -e data/backup/credentialsmysql.cnf ]; then
@ -120,7 +98,6 @@ if [[ $bypass -eq 0 ]]; then
fi fi
migrate_module $phpcommand $pathCore migrate_module $phpcommand $pathCore
migrate_module $phpcommand $pathBO
migrate_module $phpcommand $pathFO migrate_module $phpcommand $pathFO
fi fi