Matched git up to date check to work on server

This commit is contained in:
keplyx 2019-07-26 18:52:50 +02:00
parent b0ae62f5db
commit b2187c9ebb

View file

@ -4,7 +4,8 @@ $relativePath = "../";
require_once $relativePath . 'classes/dao.php';
$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">
<h1>ADMIN</h1>