Skip to content

Commit b8ca642

Browse files
committed
Follow redirects during curl DL
1 parent 8478c50 commit b8ca642

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/downloader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function downloadFile(file_url, file_output_name, cb) {
3636
file_path = artworkDir + '/' + file_name;
3737

3838
// const ls = spawn('ls', ['-lh', '/usr']);
39-
const curl = spawn('curl', ['-o', file_path, file_url]);
39+
const curl = spawn('curl', ['-L', '-o', file_path, file_url]);
4040

4141
curl.stdout.on('data', (data) => {
4242
debug(`stdout: ${data}`);

0 commit comments

Comments
 (0)