mirror of
https://gitee.com/BDWare/agent-backend
synced 2025-01-10 01:44:14 +00:00
prune CMHttpServer
This commit is contained in:
parent
7c91416350
commit
6d90352b6f
@ -161,6 +161,9 @@ public class CMHttpServer {
|
|||||||
try {
|
try {
|
||||||
for (JsonElement je : cmdConf.startContract) {
|
for (JsonElement je : cmdConf.startContract) {
|
||||||
JsonObject jo = je.getAsJsonObject();
|
JsonObject jo = je.getAsJsonObject();
|
||||||
|
if (!jo.has("path"))
|
||||||
|
continue;
|
||||||
|
|
||||||
String path = jo.get("path").getAsString();
|
String path = jo.get("path").getAsString();
|
||||||
File f = new File(path);
|
File f = new File(path);
|
||||||
if (!f.getName().endsWith(".ypk") || !f.exists())
|
if (!f.getName().endsWith(".ypk") || !f.exists())
|
||||||
|
Loading…
Reference in New Issue
Block a user