Skip to content

Commit

Permalink
osdpctl: Fix broken build due to std::env!(EDITOR) not being set
Browse files Browse the repository at this point in the history
Signed-off-by: Siddharth Chandrasekaran <[email protected]>
  • Loading branch information
sidcha committed Feb 11, 2024
1 parent f9b2cb9 commit 0f0d8ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osdpctl/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ fn main() -> Result<()> {
.context("device name is required")
.unwrap();
let config_path = cfg_dir.join(format!("{name}.cfg"));
std::process::Command::new(std::env!("EDITOR"))
std::process::Command::new(std::env::var("EDITOR")?)
.arg(&config_path)
.status()
.unwrap();
Expand Down

0 comments on commit 0f0d8ed

Please sign in to comment.