accept azdata eula (#8114)

This commit is contained in:
Alan Ren
2019-10-30 13:31:05 -07:00
committed by GitHub
parent dd270a78fc
commit 0dec2ff9b5

View File

@@ -79,6 +79,7 @@ export class NotebookService implements INotebookService {
const workingDirectory = this.platformService.storagePath();
const notebookFullPath = path.join(workingDirectory, fileName);
const outputFullPath = path.join(workingDirectory, `output-${fileName}`);
process.env['ACCEPT_EULA'] = 'yes';
try {
await this.platformService.saveTextFile(content, notebookFullPath);
await this.platformService.runCommand(`azdata notebook run --path "${notebookFullPath}" --output-path "${workingDirectory}" --timeout -1`,