We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad447c2 commit 72b935fCopy full SHA for 72b935f
server/addons.php
@@ -44,6 +44,7 @@
44
45
$action = '';
46
$package = '';
47
+$force = false;
48
49
$argv = $_SERVER['argv'];
50
for($a = 1; $a < count($argv); $a++) {
@@ -52,6 +53,8 @@
52
53
$action = 'install';
54
} elseif($argv[$a] === '--uninstall' || $argv[$a] === 'uninstall') {
55
$action = 'uninstall';
56
+ } elseif($argv[$a] === '--force') {
57
+ $force = true;
58
} elseif(substr($argv[$a], -4) === '.pkg' && is_file($argv[$a])) {
59
$package = $argv[$a];
60
} else {
@@ -63,7 +66,7 @@
63
66
die('Automatic uninstall not supported, yet.');
64
67
65
68
try {
- $app->addon_installer->installAddon($package);
69
+ $app->addon_installer->installAddon($package, $force);
70
} catch(Exception $e) {
71
die('Error: ' . $e->getMessage() . "\n");
72
}
0 commit comments