mirror of
https://github.com/Findus23/devicedetector.net.git
synced 2024-09-19 15:43:46 +02:00
abort if updating fails
This commit is contained in:
parent
dee31a62b0
commit
14040203f8
1 changed files with 10 additions and 2 deletions
12
update.php
12
update.php
|
@ -4,9 +4,17 @@ namespace DeviceDetectorNet;
|
||||||
|
|
||||||
require_once 'vendor/autoload.php';
|
require_once 'vendor/autoload.php';
|
||||||
|
|
||||||
system("composer update piwik/device-detector");
|
system("composer update piwik/device-detector", $returnCode);
|
||||||
|
|
||||||
system("cd matomo-icons/ && git pull");
|
if ($returnCode) {
|
||||||
|
die();
|
||||||
|
}
|
||||||
|
|
||||||
|
system("cd matomo-icons/ && git pull", $returncode);
|
||||||
|
|
||||||
|
if ($returnCode) {
|
||||||
|
die();
|
||||||
|
}
|
||||||
|
|
||||||
$lockstring = file_get_contents("composer.lock");
|
$lockstring = file_get_contents("composer.lock");
|
||||||
$composerLock = json_decode($lockstring, true);
|
$composerLock = json_decode($lockstring, true);
|
||||||
|
|
Loading…
Reference in a new issue