Don't prompt the user to update their PATH if --no-modify-path was supplied (#4872)

This commit is contained in:
Michael Vines 2019-06-28 16:45:01 -07:00 committed by GitHub
parent 75b494d4a3
commit 0c832f4668
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -514,7 +514,7 @@ pub fn init(
false
};
if !path_modified {
if !path_modified && !no_modify_path {
check_env_path_for_bin_dir(&config);
}
Ok(())