Skip to content

Commit

Permalink
Fixes issue phergie#29: Phergie attempts to load phergie.php as a con…
Browse files Browse the repository at this point in the history
…fig file
  • Loading branch information
Matt committed Feb 28, 2010
1 parent d27dbf2 commit cd8ea05
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions phergie.php
Expand Up @@ -29,6 +29,12 @@
$bot = new Phergie_Bot;

if ($argc > 0) {
// Skip the current file for manual installations
// ex: php phergie.php Settings.php
if (realpath($argv[0]) == __FILE__) {
array_shift($argv);
}

$config = new Phergie_Config;
foreach ($argv as $file) {
$config->read($file);
Expand Down

0 comments on commit cd8ea05

Please sign in to comment.