mirror of
https://github.com/PretendoNetwork/BOSS.git
synced 2026-10-02 05:46:54 -05:00
fix(cli): Allow download of files with no payload content
This commit is contained in:
@@ -117,7 +117,7 @@ const downloadCmd = new Command('download')
|
||||
const keys = ctx.get3DSKeys();
|
||||
const decrypted = decrypt3DS(buffer, keys.aesKey);
|
||||
// TODO - Handle multiple payloads
|
||||
buffer = decrypted.payload_contents[0].content;
|
||||
buffer = decrypted.payload_contents[0]?.content ?? Buffer.alloc(0);
|
||||
}
|
||||
|
||||
await pipeline(Readable.from(buffer), process.stdout);
|
||||
|
||||
Reference in New Issue
Block a user