From 20c19905ac6feb72c24e66242ab7ba06d06e3e64 Mon Sep 17 00:00:00 2001 From: Soulter <37870767+Soulter@users.noreply.github.com> Date: Tue, 11 Apr 2023 17:54:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dupdate=E6=96=87?= =?UTF-8?q?=E6=9C=AC=E6=98=BE=E7=A4=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/command/command.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model/command/command.py b/model/command/command.py index 365766577..653f0c8fb 100644 --- a/model/command/command.py +++ b/model/command/command.py @@ -94,11 +94,11 @@ class Command: # else: # py = sys.executable # os.execl(py, py, *sys.argv) - return True, "更新成功~是否重启?输入update reboot重启(重启指令不返回任何确认信息)。", "update" + return True, "更新成功~是否重启?输入update r重启(重启指令不返回任何确认信息)。", "update" except BaseException as e: return False, "更新失败: "+str(e), "update" - if l[1] == "reboot": + if l[1] == "r": py = sys.executable os.execl(py, py, *sys.argv)