🎨 Supply decryption keys as comma-delimited string and not as three args

This commit is contained in:
C-3PO 2018-09-14 01:52:26 +02:00
parent a605e78715
commit 1fb738505e
Signed by: c3po
GPG key ID: 62993C4BB4D86F24

View file

@ -12,7 +12,7 @@ export default function launchProcess(diskFile: string, offset: number, compress
'--size', compressedSize, '--size', compressedSize,
]; ];
if (decryptionKeys !== undefined) { if (decryptionKeys !== undefined) {
parameters.push('--keys', ...decryptionKeys); parameters.push('--keys', decryptionKeys.join(','));
} }
const spawnedProcess = childProcess.spawn(processPath, parameters.map((value) => value.toString(), { cwd: '.' })); const spawnedProcess = childProcess.spawn(processPath, parameters.map((value) => value.toString(), { cwd: '.' }));