context is great again, fixes to connectors

This commit is contained in:
2019-11-14 22:42:03 +03:00
parent 6a37870bd2
commit 98aa197578
5 changed files with 33 additions and 17 deletions
+16
View File
@@ -0,0 +1,16 @@
<?php
$fileName = "./config.json";
$string = file_get_contents($fileName);
$json = json_decode($string, TRUE);
$newVersion = trim(shell_exec("git describe --tags | head"));
$json["version"] = $newVersion;
//print_r($json);
$newConfig = json_encode($json, JSON_PRETTY_PRINT);
file_put_contents($fileName, $newConfig);