Skip to content

Commit

Permalink
Fix incorrect binary link target (#654)
Browse files Browse the repository at this point in the history
  • Loading branch information
alfiedotwtf committed Oct 4, 2024
1 parent 9bf3858 commit d3cfecc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/toolchain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,10 @@ impl Toolchain {
} else {
let downloaded = store.install_component(&cfg)?;
for bin in downloaded {
hard_or_symlink_file(&bin, &self.bin_path.join(&cfg.name))?;
match bin.file_name() {
None => bail!("Failed to read file '{bin:?}' from download"),
Some(executable) => hard_or_symlink_file(&bin, &self.bin_path.join(executable))?,
}
}
}
}
Expand Down

0 comments on commit d3cfecc

Please sign in to comment.