mirror of
https://github.com/lune-org/lune.git
synced 2025-01-05 19:09:10 +00:00
Fix cli type definition download commands
This commit is contained in:
parent
709c307374
commit
cb9aa1fc1b
1 changed files with 3 additions and 1 deletions
|
@ -79,7 +79,9 @@ impl Client {
|
||||||
.find(|asset| matches!(&asset.name, Some(name) if name == asset_name))
|
.find(|asset| matches!(&asset.name, Some(name) if name == asset_name))
|
||||||
{
|
{
|
||||||
let file_path = current_dir()?.join(asset_name);
|
let file_path = current_dir()?.join(asset_name);
|
||||||
let file_string = self.get(&asset.url, &[]).await?;
|
let file_string = self
|
||||||
|
.get(&asset.url, &[("Accept", "application/octet-stream")])
|
||||||
|
.await?;
|
||||||
smol::fs::write(&file_path, &file_string)
|
smol::fs::write(&file_path, &file_string)
|
||||||
.await
|
.await
|
||||||
.with_context(|| {
|
.with_context(|| {
|
||||||
|
|
Loading…
Reference in a new issue