Skip to content

Commit

Permalink
Merge pull request #678 from axodotdev/ignore-script-hints
Browse files Browse the repository at this point in the history
fix: don't respect cargo-dist's install hints for curl-sh exprs
  • Loading branch information
Gankra authored Dec 20, 2023
2 parents aba8a57 + 60ab1fd commit b11f405
Show file tree
Hide file tree
Showing 4 changed files with 115 additions and 112 deletions.
5 changes: 4 additions & 1 deletion src/data/cargo_dist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,14 @@ impl ReleaseArtifacts {
{
preference = InstallerPreference::Custom;
None
} else if id.ends_with(".sh") || id.ends_with(".ps1") {
// We have more info to do a better job than cargo-dist on
// `curl | sh` exprs, inference will handle this for us!
continue;
} else {
preference = InstallerPreference::Script;
file
};

method = InstallMethod::Run {
file,
run_hint: install_hint.clone(),
Expand Down
Loading

0 comments on commit b11f405

Please sign in to comment.