Matched git up to date check to work on server
This commit is contained in:
parent
b0ae62f5db
commit
b2187c9ebb
1 changed files with 2 additions and 1 deletions
|
@ -4,7 +4,8 @@ $relativePath = "../";
|
||||||
require_once $relativePath . 'classes/dao.php';
|
require_once $relativePath . 'classes/dao.php';
|
||||||
|
|
||||||
$statut = shell_exec("git status");
|
$statut = shell_exec("git status");
|
||||||
$canUpdate = strpos($statut, 'Your branch is up to date') === false;
|
$canUpdate = strpos($statut, 'Your branch is up to date') !== false &&
|
||||||
|
strpos($statut, 'Your branch is up-to-date' !== false);
|
||||||
?>
|
?>
|
||||||
<div class="inner">
|
<div class="inner">
|
||||||
<h1>ADMIN</h1>
|
<h1>ADMIN</h1>
|
||||||
|
|
Loading…
Reference in a new issue