diff --git a/plugins/gogs/index.py b/plugins/gogs/index.py index 3c2b3109b..ef103e29c 100755 --- a/plugins/gogs/index.py +++ b/plugins/gogs/index.py @@ -917,7 +917,7 @@ def projectScriptSelf_Run(): self_path = custom_hooks + '/self/' + file self_logs_path = custom_hooks + '/self_logs/' + file + '.log' - shell = "sh -x " + self_path + " 2>" + self_logs_path + shell = "sh -x " + self_path + " 2>" + self_logs_path + ' &' mw.execShell(shell) return mw.returnJson(True, '执行成功!')