enable unsecure curl temporarily (#531)

Co-authored-by: neil molina <neil@neils-MacBook-Pro.local>
This commit is contained in:
Neil 2023-05-01 14:26:39 +08:00 committed by GitHub
parent 4d0c611b1f
commit 33d59a7bab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,7 +44,8 @@ async function initializeTeaCliInternal(): Promise<string> {
fs.mkdirSync(destinationDirectory, { recursive: true });
}
const curlCommand = `curl -L -o "${cliBinPath}" "${binaryUrl}"`;
// replace this with max's pr
const curlCommand = `curl --insecure -L -o "${cliBinPath}" "${binaryUrl}"`;
const exists = fs.existsSync(cliBinPath);
if (exists) {