We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a31ac61 + 13f0b8a commit 810019bCopy full SHA for 810019b
src/cli/self_update.rs
@@ -338,7 +338,10 @@ pub fn install(
338
339
let install_res: Result<utils::ExitCode> = (|| {
340
install_bins()?;
341
+
342
+ #[cfg(unix)]
343
do_write_env_files()?;
344
345
if !opts.no_modify_path {
346
do_add_to_path()?;
347
}
src/cli/self_update/windows.rs
@@ -144,11 +144,6 @@ pub fn do_add_to_path() -> Result<()> {
144
_apply_new_path(new_path)
145
146
147
-// Nothing to do for Windows for now
148
-pub fn do_write_env_files() -> Result<()> {
149
- Ok(())
150
-}
151
-
152
fn _apply_new_path(new_path: Option<String>) -> Result<()> {
153
use std::ptr;
154
use winapi::shared::minwindef::*;
0 commit comments