Add .exe extension before checking for a program file on windows (#4902)

This commit is contained in:
Michael Vines
2019-07-02 08:04:27 -07:00
committed by GitHub
parent c1201e54fa
commit 933ae51fcc

View File

@ -749,7 +749,11 @@ pub fn run(
) -> Result<(), String> { ) -> Result<(), String> {
let config = Config::load(config_file)?; let config = Config::load(config_file)?;
let full_program_path = config.active_release_bin_dir().join(program_name); let mut full_program_path = config.active_release_bin_dir().join(program_name);
if cfg!(windows) {
full_program_path.set_extension("exe");
}
if !full_program_path.exists() { if !full_program_path.exists() {
Err(format!( Err(format!(
"{} does not exist", "{} does not exist",