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

automerge
This commit is contained in:
mergify[bot]
2019-07-02 08:48:35 -07:00
committed by Grimes
parent ab1fda2a54
commit ca35854417

View File

@ -749,7 +749,11 @@ pub fn run(
) -> Result<(), String> {
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() {
Err(format!(
"{} does not exist",