Fix quickinstall failing when packages are not wrapped in a folder

This commit is contained in:
Félix Saparelli 2022-02-16 22:42:37 +13:00
parent 49f3489398
commit b5d6d68d6d
4 changed files with 23 additions and 2 deletions

View file

@ -168,6 +168,11 @@ async fn main() -> Result<(), anyhow::Error> {
);
}
if fetcher.source_name() == "QuickInstall" {
// TODO: less of a hack?
meta.bin_dir = "{ bin }{ binary-ext }".to_string();
}
// Download package
if opts.dry_run {
info!("Dry run, not downloading package");