@@ -5,10 +5,10 @@ class git
public static function checkError(string $_string = NULL){
$return = NULL;
if($_string != NULL){
- if(strpos($_string, '(use "git pull" to update your local branch)') === FALSE){
- $return = FALSE;
+ if(strpos($_string, '-// SUCCESS //-') === TRUE){
+ $return = TRUE;
} else {
- return TRUE;
+ return FALSE;
}
return $return;
@@ -1,3 +1,5 @@
+#!/bin/bash
+
FOLDER=pp.cms.cse-invent.com
BRANCH_ORIGIN=r7
BRANCH=preprod
@@ -24,4 +26,4 @@ git pull origin ${BRANCH_ORIGIN} || { echo "Échec du pull depuis ${BRANCH_ORIGI
echo "Push des changements en cours..."
git push || { echo "Échec du push."; exit 1; }
-echo "Script GIT terminé avec succès."
+echo "-// SUCCESS //-";
FOLDER=cms.cse-invent.com
BRANCH_ORIGIN=preprod
BRANCH=master
@@ -26,4 +26,4 @@ git pull origin ${BRANCH_ORIGIN} || { echo "Échec du pull depuis ${BRANCH_ORIGI