diff --git a/src/steps/vim.rs b/src/steps/vim.rs index b1c10674..4b8be0f7 100644 --- a/src/steps/vim.rs +++ b/src/steps/vim.rs @@ -35,7 +35,7 @@ fn nvimrc(base_dirs: &BaseDirs) -> Option { fn upgrade(vim: &PathBuf, vimrc: &PathBuf, ctx: &ExecutionContext) -> Result<()> { let mut tempfile = tempfile::NamedTempFile::new()?; - tempfile.write_all(UPGRADE_VIM.as_bytes())?; + tempfile.write_all(UPGRADE_VIM.replace('\r', "").as_bytes())?; debug!("Wrote vim script to {:?}", tempfile.path()); let output = ctx diff --git a/src/utils.rs b/src/utils.rs index 26171632..cd49928c 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -45,8 +45,10 @@ where { fn if_exists(self) -> Option { if self.as_ref().exists() { + debug!("Path {:?} exists", self.as_ref()); Some(self) } else { + debug!("Path {:?} doesn't exist", self.as_ref()); None } }