diff --git a/phergie.php b/phergie.php index e8edf47..8e6c6bd 100755 --- a/phergie.php +++ b/phergie.php @@ -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);