aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-01-13 00:08:07 -0800
committerredmatrix <git@macgirvin.com>2016-01-13 00:08:07 -0800
commit58efd7553c9ec872a64d430efd90ff62c6b4e3e5 (patch)
tree7cff0a0cdb38a995c944cfbdef16bf1d0bec06b6 /util
parent0484f5b0dc1867618c5d29fe234c7e2a38f748e3 (diff)
downloadvolse-hubzilla-58efd7553c9ec872a64d430efd90ff62c6b4e3e5.tar.gz
volse-hubzilla-58efd7553c9ec872a64d430efd90ff62c6b4e3e5.tar.bz2
volse-hubzilla-58efd7553c9ec872a64d430efd90ff62c6b4e3e5.zip
very small tweaks to CLI plugin manager utility
Diffstat (limited to 'util')
-rwxr-xr-xutil/addons12
1 files changed, 7 insertions, 5 deletions
diff --git a/util/addons b/util/addons
index 602cc228e..2c128c50e 100755
--- a/util/addons
+++ b/util/addons
@@ -10,6 +10,7 @@ echo <<< EOT
util/addons list all # list all addons (*)= installed, (!)= disabled due to version compatibility
util/addons install foo # install addon named 'foo'
util/addons uninstall foo # uninstall addon named 'foo'
+
EOT;
}
@@ -58,12 +59,13 @@ if($argc == 1) {
if($argc == 2 && $argv[1] === 'list') {
- $r = q("select * from addon where installed = 1");
- if($r) {
- foreach($r as $rr) {
- echo $rr['name'] . "\n";
+ if($plugins) {
+ foreach($plugins as $p) {
+ if($p[1]) {
+ echo $p[0] . "\n";
+ }
}
- }
+ }
killme();
}