Skip to content
Permalink
Browse files

Better hotfix script output

  • Loading branch information
Marlamin committed Mar 14, 2020
1 parent 244ec99 commit 0eb3fc86b602d3445aef8f9a038a1321f80ef521
Showing with 2 additions and 2 deletions.
  1. +2 −2 dbc/scripts/updateHotfixes.php
@@ -15,7 +15,7 @@
if(in_array($md5, $processedMD5s))
continue;

echo $file."\n";
echo "[Hotfix updater] Reading " . $file . "\n";
$output = shell_exec("cd /home/wow/hotfixdumper; dotnet WoWTools.HotfixDumper.dll " . escapeshellarg($file) . " " . escapeshellarg("/home/wow/dbd/WoWDBDefs/definitions"));
$json = json_decode($output, true);

@@ -30,7 +30,7 @@

$insertQ->execute([$entry['pushID'], $entry['recordID'], $entry['tableName'], $entry['isValid'], $json['build']]);
if($insertQ->rowCount() == 1){
echo "Inserted new hotfix: Push ID " . $entry['pushID'] .", Table " . $entry['tableName'] . " ID " .$entry['recordID']." from build " . $json['build']."\n";
echo "[Hotfix updater] Inserted new hotfix: Push ID " . $entry['pushID'] .", Table " . $entry['tableName'] . " ID " .$entry['recordID']." from build " . $json['build']."\n";

if(!array_key_exists($entry['pushID'], $messages)){
$messages[$entry['pushID']] = "Push ID " . $entry['pushID'] . " for build " . $json['build']."\n";

0 comments on commit 0eb3fc8

Please sign in to comment.
You can’t perform that action at this time.