Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
Use curl instead of wget
Browse files Browse the repository at this point in the history
Signed-off-by: Mykola Morhun <mmorhun@redhat.com>
  • Loading branch information
mmorhun committed Mar 19, 2020
1 parent 01b3153 commit 7c2b7de
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions plugins/workspace-plugin/src/theia-commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,12 @@ export class TheiaImportZipCommand implements TheiaImportCommand {
const importZip = async (progress: theia.Progress<{ message?: string; increment?: number }>, token: theia.CancellationToken): Promise<void> => {
try {
// download
const wgetArgs = [this.locationURI!, '-O', this.zipfilePath];
const curlArgs = ['-sL', '--output', this.zipfilePath];
if (fs.existsSync(SS_CRT_PATH)) {
wgetArgs.push('--no-check-certificate');
curlArgs.push('-k');
}
await execute('wget', wgetArgs);
curlArgs.push(this.locationURI!);
await execute('curl', curlArgs);

// expand
fs.mkdirSync(this.projectDir);
Expand Down

0 comments on commit 7c2b7de

Please sign in to comment.