From 3a278f4cc6f2ded3a8ef1bca46760bbf5951e3e2 Mon Sep 17 00:00:00 2001 From: midoks Date: Mon, 15 Aug 2022 13:04:52 +0800 Subject: [PATCH] Update system_api.py --- class/core/system_api.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/class/core/system_api.py b/class/core/system_api.py index 083380c1e..901e38627 100755 --- a/class/core/system_api.py +++ b/class/core/system_api.py @@ -691,9 +691,10 @@ class system_api: if not os.path.exists(dist_to): os.system('unzip -o ' + toPath + '/mw.zip' + ' -d ' + toPath) - cmd_cp = 'cp -rf ' + toPath + '/mdserver-web-' + \ - version + '/* ' + mw.getServerDir() + '/mdserver-web' - mw.execShell(cmd_cp) + + cmd_cp = 'cp -rf ' + toPath + '/mdserver-web-' + \ + version + '/* ' + mw.getServerDir() + '/mdserver-web' + mw.execShell(cmd_cp) mw.execShell('rm -rf ' + toPath + '/mdserver-web-' + version) mw.execShell('rm -rf ' + toPath + '/mw.zip')