mirror of
https://github.com/starship/starship.git
synced 2026-06-22 02:02:12 +07:00
fix(windows): avoid inadvertly running exes from cwd (#2885)
On Windows when running commands with their name instead of the path with Command::new, executable with that name from the current working directory will be executed. This PR replaces all instances of Command::new with a new create_command function which will first resolve any executable paths and avoid this issue.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
#![warn(clippy::disallowed_method)]
|
||||
|
||||
use clap::crate_authors;
|
||||
use std::io;
|
||||
use std::time::SystemTime;
|
||||
|
||||
Reference in New Issue
Block a user