1
0
Fork 0
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:
Lukas Winkler 2020-01-20 10:47:02 +01:00
parent dee31a62b0
commit 14040203f8
Signed by: lukas
GPG key ID: 54DE4D798D244853

View file

@ -4,9 +4,17 @@ namespace DeviceDetectorNet;
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");
$composerLock = json_decode($lockstring, true);