Skip to content

Commit

Permalink
Output on global args will now override specific output
Browse files Browse the repository at this point in the history
  • Loading branch information
Tzahi12345 committed May 4, 2020
1 parent 8e5db3e commit a3424f9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions backend/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -1535,6 +1535,11 @@ async function generateArgs(url, type, options) {

if (globalArgs && globalArgs !== '') {
// adds global args
if (downloadConfig.indexOf('-o') !== -1 && globalArgs.split(',,').indexOf('-o') !== -1) {
// if global args has an output, replce the original output with that of global args
const original_output_index = downloadConfig.indexOf('-o');
downloadConfig.splice(original_output_index, 2);
}
downloadConfig = downloadConfig.concat(globalArgs.split(',,'));
}

Expand Down

0 comments on commit a3424f9

Please sign in to comment.