@@ 21-23 (lines=3) @@ | ||
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-29 (lines=3) @@ | ||
24 | } |
|
25 | ||
26 | // php update.php app |
|
27 | if (isset($argv[1]) && is_dir($argv[1])) { |
|
28 | $app_dir = $argv[1]; |
|
29 | } |
|
30 | ||
31 | $installer = new Installer($silent); |
|
32 | $installer->update($app_dir); |