| @@ 17-24 (lines=8) @@ | ||
| 14 | $app_dir = 'application'; |
|
| 15 | ||
| 16 | // php install.php -s |
|
| 17 | if (isset($argv[1]) && $argv[1] === '-s') { |
|
| 18 | $silent = true; |
|
| 19 | ||
| 20 | // php install.php -s app |
|
| 21 | if (isset($argv[2]) && is_dir($argv[2])) { |
|
| 22 | $app_dir = $argv[2]; |
|
| 23 | } |
|
| 24 | } |
|
| 25 | ||
| 26 | // php install.php app |
|
| 27 | if (isset($argv[1]) && is_dir($argv[1])) { |
|
| @@ 17-24 (lines=8) @@ | ||
| 14 | $app_dir = 'application'; |
|
| 15 | ||
| 16 | // php update.php -s |
|
| 17 | if (isset($argv[1]) && $argv[1] === '-s') { |
|
| 18 | $silent = true; |
|
| 19 | ||
| 20 | // php update.php -s app |
|
| 21 | if (isset($argv[2]) && is_dir($argv[2])) { |
|
| 22 | $app_dir = $argv[2]; |
|
| 23 | } |
|
| 24 | } |
|
| 25 | ||
| 26 | // php update.php app |
|
| 27 | if (isset($argv[1]) && is_dir($argv[1])) { |
|