mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 06:53:44 +08:00
chore: update
This commit is contained in:
parent
d41d74d0f8
commit
964daadb18
@ -95,7 +95,7 @@ pub async fn reinstall_service() -> Result<()> {
|
|||||||
let elevator = crate::utils::help::linux_elevator();
|
let elevator = crate::utils::help::linux_elevator();
|
||||||
let status = match get_effective_uid() {
|
let status = match get_effective_uid() {
|
||||||
0 => StdCommand::new(uninstall_shell).status()?,
|
0 => StdCommand::new(uninstall_shell).status()?,
|
||||||
_ => StdCommand::new(elevator)
|
_ => StdCommand::new(elevator.clone())
|
||||||
.arg("sh")
|
.arg("sh")
|
||||||
.arg("-c")
|
.arg("-c")
|
||||||
.arg(uninstall_shell)
|
.arg(uninstall_shell)
|
||||||
@ -105,7 +105,7 @@ pub async fn reinstall_service() -> Result<()> {
|
|||||||
|
|
||||||
let status = match get_effective_uid() {
|
let status = match get_effective_uid() {
|
||||||
0 => StdCommand::new(install_shell).status()?,
|
0 => StdCommand::new(install_shell).status()?,
|
||||||
_ => StdCommand::new(elevator)
|
_ => StdCommand::new(elevator.clone())
|
||||||
.arg("sh")
|
.arg("sh")
|
||||||
.arg("-c")
|
.arg("-c")
|
||||||
.arg(install_shell)
|
.arg(install_shell)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user