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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

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",