Use the argv[1] only if it is set.
This commit is contained in:
parent
40205d32bf
commit
7588c8d9f8
|
|
@ -54,10 +54,14 @@
|
||||||
//get the command line arguments
|
//get the command line arguments
|
||||||
if(defined('STDIN')) {
|
if(defined('STDIN')) {
|
||||||
//$application_name = $argv[0];
|
//$application_name = $argv[0];
|
||||||
$upgrade_type = $argv[1];
|
if (isset($argv[1])) {
|
||||||
//echo $upgrade_type."\n";
|
$upgrade_type = $argv[1];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//show the upgrade type
|
||||||
|
//echo $upgrade_type."\n";
|
||||||
|
|
||||||
//run all app_defaults.php files
|
//run all app_defaults.php files
|
||||||
if ($upgrade_type == 'domains') {
|
if ($upgrade_type == 'domains') {
|
||||||
require_once "resources/classes/config.php";
|
require_once "resources/classes/config.php";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue