From 964daadb18310a4d28a1962d604b63cd82327857 Mon Sep 17 00:00:00 2001 From: huzibaca Date: Mon, 21 Oct 2024 04:35:21 +0800 Subject: [PATCH] chore: update --- src-tauri/src/core/service.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/core/service.rs b/src-tauri/src/core/service.rs index 07853b28..66dd1936 100644 --- a/src-tauri/src/core/service.rs +++ b/src-tauri/src/core/service.rs @@ -95,7 +95,7 @@ pub async fn reinstall_service() -> Result<()> { let elevator = crate::utils::help::linux_elevator(); let status = match get_effective_uid() { 0 => StdCommand::new(uninstall_shell).status()?, - _ => StdCommand::new(elevator) + _ => StdCommand::new(elevator.clone()) .arg("sh") .arg("-c") .arg(uninstall_shell) @@ -105,7 +105,7 @@ pub async fn reinstall_service() -> Result<()> { let status = match get_effective_uid() { 0 => StdCommand::new(install_shell).status()?, - _ => StdCommand::new(elevator) + _ => StdCommand::new(elevator.clone()) .arg("sh") .arg("-c") .arg(install_shell)