Skip to content

Commit

Permalink
Merge pull request #943 from JuliaLang/fix-non-shell-script-install
Browse files Browse the repository at this point in the history
Only modify shell scripts if that is selected
  • Loading branch information
davidanthoff authored Jun 4, 2024
2 parents a351f4b + 9bd6979 commit fefe3a4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/bin/juliainstaller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,11 @@ pub fn main() -> Result<()> {
.unwrap();
run_command_config_startupselfupdate(Some(install_choices.startupselfupdate), true, &paths)
.unwrap();
run_command_config_modifypath(Some(install_choices.modifypath), true, &paths).unwrap();
if install_choices.modifypath {
// We only run this if true so that we don't try to touch the various shell scripts at all
// if this is not selected.
run_command_config_modifypath(Some(install_choices.modifypath), true, &paths).unwrap();
}
run_command_config_symlinks(Some(install_choices.symlinks), true, &paths).unwrap();
run_command_selfchannel(args.juliaup_channel, &paths).unwrap();

Expand Down

0 comments on commit fefe3a4

Please sign in to comment.