Skip to content

Commit

Permalink
Another possible fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
DariusIII committed Oct 13, 2015
1 parent 12480f5 commit 14c6830
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 9 deletions.
2 changes: 2 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
2015-10-13 DariusIII
Fix: Wrong edits, still working on commit management
2015-10-13 DariusIII
Fix: improve speed by replacing str_ireplace with strpos.Pushing again.
2015-10-13 DariusIII
Expand Down
14 changes: 6 additions & 8 deletions build/NewPatches.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
* @copyright 2015 nZEDb
*/

require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . 'indexer.php';
require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . 'www' . DIRECTORY_SEPARATOR . 'config.php';

use nzedb\db\DbUpdate;
use nzedb\utility\Git;
use nzedb\utility\Misc;
use newznab\db\DbUpdate;
use newznab\utility\Git;
use newznab\utility\Utility;

if (!Misc::isCLI()) {
if (!Utility::isCLI()) {
exit;
}

Expand All @@ -46,6 +46,4 @@
}
}

exit($error);

?>
exit($error);
13 changes: 12 additions & 1 deletion commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env bash
#!/bin/sh

EXIT_STATUS=0

# Add changes.
git add -i
Expand All @@ -9,5 +11,14 @@ nano Changelog
# Add changes to changelog.
git add Changelog

php build/NewPatches.php

EXIT_STATUS="$?"
if [ ${EXIT_STATUS} -gt 0 ]
then
echo "\nProblem while converting SQL patch files!\n";
exit ${EXIT_STATUS}
fi

# Commit changes.
git commit

0 comments on commit 14c6830

Please sign in to comment.