From 933ae51fcc2797b487ffaff8080275d5ac3384ae Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Tue, 2 Jul 2019 08:04:27 -0700 Subject: [PATCH] Add .exe extension before checking for a program file on windows (#4902) --- install/src/command.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install/src/command.rs b/install/src/command.rs index 26be33061e..95ff268d33 100644 --- a/install/src/command.rs +++ b/install/src/command.rs @@ -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",