Update index.py

This commit is contained in:
midoks 2022-06-19 16:03:04 +08:00
parent 440682fa75
commit d2a4f90ef9
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,6 @@ def initDreplace():
def memOp(method):
file = initDreplace()
data = mw.execShell(file + ' ' + method)
if not mw.isAppleSystem():
data = mw.execShell('systemctl ' + method + ' ' + getPluginName())
@ -137,6 +136,7 @@ def memOp(method):
return 'ok'
return data[1]
data = mw.execShell(file + ' ' + method)
if data[1] == '':
return 'ok'
return data[1]