diff --git a/src/data/cargo_dist.rs b/src/data/cargo_dist.rs index 4afe3aa3..7432ede1 100644 --- a/src/data/cargo_dist.rs +++ b/src/data/cargo_dist.rs @@ -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(), diff --git a/tests/snapshots/gal_akaikatana-public.snap b/tests/snapshots/gal_akaikatana-public.snap index 7113a3a0..3fefd6d9 100644 --- a/tests/snapshots/gal_akaikatana-public.snap +++ b/tests/snapshots/gal_akaikatana-public.snap @@ -73,9 +73,9 @@ expression: "&snapshots"
-irm https://github.com/mistydemeo/akaikatana-repack/releases/download/v0.2.0/akaikatana-repack-installer.ps1 | iex+irm https://github.com/oranda-gallery/akaikatana-repack/releases/download/v0.2.0/akaikatana-repack-installer.ps1 | iex -