From 1a6abf4e1b7519323d99086a3fd5a634c1f9e9ba Mon Sep 17 00:00:00 2001 From: kuaifan Date: Fri, 24 Oct 2025 03:34:22 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=9C=A8=E5=AE=89=E8=A3=85=E5=92=8C?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=87=BD=E6=95=B0=E4=B8=AD=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?sudo=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd b/cmd index e4031609e..c5fbe0a06 100755 --- a/cmd +++ b/cmd @@ -483,6 +483,8 @@ EOF # 安装函数 handle_install() { + check_sudo + local relock=$(arg_get relock) local port=$(arg_get port) @@ -572,6 +574,8 @@ handle_install() { # 更新函数 handle_update() { + check_sudo + local target_branch=$(arg_get branch) local is_local=$(arg_get local) local force_update=$(arg_get force)