File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -127,9 +127,15 @@ manage_es_plugin() {
127
127
fi
128
128
# 5.x?
129
129
cmd=" $ES_HOME /bin/elasticsearch-plugin"
130
+ option_list=" list"
131
+ option_install=" install"
132
+ option_remove=" remove"
130
133
if [ ! -f " $cmd " ]; then
131
134
# No? Try 1.x or 2.x...
132
135
cmd=" $ES_HOME /bin/plugin"
136
+ option_list=" --$option_list "
137
+ option_install=" --$option_install "
138
+ option_remove=" --$option_remove "
133
139
if [ ! -f " $cmd " ]; then
134
140
# No?
135
141
abort " Plugin command not found."
@@ -138,15 +144,15 @@ manage_es_plugin() {
138
144
option=" $1 "
139
145
if [ " x$option " == " x" ]; then
140
146
echo " -> Retrieving installed plugins"
141
- cmd=" $cmd list "
147
+ cmd=" $cmd $option_list "
142
148
else
143
149
plugin=" $2 "
144
150
case " $option " in
145
151
--install)
146
- cmd=" $cmd install $plugin "
152
+ cmd=" $cmd $option_install $plugin "
147
153
;;
148
154
--remove)
149
- cmd=" $cmd remove $plugin "
155
+ cmd=" $cmd $option_remove $plugin "
150
156
;;
151
157
* )
152
158
abort " Unknown option. Use evm -h for help."
You can’t perform that action at this time.
0 commit comments