File tree Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -187,8 +187,12 @@ create_project() {
187
187
--rootpath)
188
188
project_root_path=" $arg_value "
189
189
shift " $shift_count " ;;
190
- -- ) shift ; break ;;
191
- * ) break ;;
190
+ -- )
191
+ echo " invalid arg -"
192
+ shift ;;
193
+ * )
194
+ echo " invalid arg $arg_option "
195
+ shift ;;
192
196
esac
193
197
done
194
198
@@ -218,14 +222,14 @@ create_project() {
218
222
}
219
223
220
224
create_service_plugin_template () {
221
- TEMPLATE_PATH=" $MODELBOX_TEMPLATE_PATH /plugin"
225
+ TEMPLATE_PATH=" $MODELBOX_TEMPLATE_PATH /service- plugin"
222
226
SOURCE_DIR=" ${project_path} /src/service-plugin/${plugin_name} "
223
227
CMAKE_FILE=" ${SOURCE_DIR} /CMakeLists.txt"
224
228
SOURCE_FILE=" ${SOURCE_DIR} /${plugin_name} .cc"
225
229
HEAD_FILE=" ${SOURCE_DIR} /${plugin_name} .h"
226
230
227
231
if [ ! -d " $TEMPLATE_PATH " ]; then
228
- echoerr " Server plugin template not exist."
232
+ echoerr " Server plugin template ${TEMPLATE_PATH} not exist."
229
233
return 1
230
234
fi
231
235
@@ -288,11 +292,15 @@ create_service_plugin() {
288
292
--name)
289
293
plugin_name=" $arg_value "
290
294
shift " $shift_count " ;;
291
- --path)
295
+ --project- path)
292
296
project_path=" $arg_value "
293
297
shift " $shift_count " ;;
294
- -- ) shift ; break ;;
295
- * ) break ;;
298
+ -- )
299
+ echo " invalid arg -"
300
+ shift ;;
301
+ * )
302
+ echo " invalid arg $arg_option "
303
+ shift ;;
296
304
esac
297
305
done
298
306
You can’t perform that action at this time.
0 commit comments