Small refactors.
This commit is contained in:
parent
fe41f93e82
commit
e60fa080b4
1 changed files with 10 additions and 3 deletions
13
src/main.rs
13
src/main.rs
|
|
@ -1,7 +1,7 @@
|
|||
use std::process::{self, ExitCode};
|
||||
|
||||
use anyhow::Result;
|
||||
use clap::Parser;
|
||||
use std::ffi::OsString;
|
||||
use std::process::{self, ExitCode};
|
||||
|
||||
use system_manager::StorePath;
|
||||
|
||||
|
|
@ -227,7 +227,14 @@ fn invoke_remote_script(
|
|||
cmd.arg("sudo");
|
||||
}
|
||||
let status = cmd
|
||||
.arg(format!("{store_path}/bin/{script_name}"))
|
||||
.arg(OsString::from(
|
||||
store_path
|
||||
.store_path
|
||||
.join("bin")
|
||||
.join(script_name)
|
||||
.to_string_lossy()
|
||||
.into_owned(),
|
||||
))
|
||||
.stdout(process::Stdio::inherit())
|
||||
.stderr(process::Stdio::inherit())
|
||||
.status()?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue