diff --git a/README.md b/README.md index e5fc6969c..37179680b 100644 --- a/README.md +++ b/README.md @@ -185,7 +185,7 @@ curl --insecure -fsSL https://code.midoks.icu/midoks/mdserver-web/raw/branch/dev curl --insecure -fsSL https://code.midoks.icu/midoks/mdserver-web/raw/branch/dev/scripts/update_dev.sh | bash ``` -### 旧版安装 +### 旧版安装/更新 ``` curl --insecure -fsSL https://raw.githubusercontent.com/midoks/mdserver-web/dev/scripts/old/install.sh | bash curl --insecure -fsSL https://raw.githubusercontent.com/midoks/mdserver-web/dev/scripts/old/update.sh | bash diff --git a/web/utils/plugin.py b/web/utils/plugin.py index a897d4bdb..1d17638fc 100644 --- a/web/utils/plugin.py +++ b/web/utils/plugin.py @@ -383,6 +383,8 @@ class plugin(object): continue task_sign = tmpt.split('-') task_len = len(task_sign) + if task_len<2: + continue task_name = task_sign[0].lower() task_ver = task_sign[1]