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

Commit

Permalink
Do not use async exec in setupTaskcluster.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Dexterp37 committed Apr 8, 2021
1 parent 8955cb3 commit 0a2c9b7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions scripts/setupTaskcluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

import * as exec from "child_process";
import { promisify } from "util";

// Define an async/await version of "exec".
const execAsync = promisify(exec.exec);

// If this is not running on TaskCluster, exit
// without an error code.
Expand All @@ -18,5 +14,5 @@ if ('TASK_ID' in process.env) {
// be installed. That package is required for Glean to build.
// We make sure to have all the dependencies in place when on
// TaskCluster by running the commands manually.
execAsync("sudo apt-get -y install python3-venv");
exec.exec("sudo apt-get -y install python3-venv");
}

0 comments on commit 0a2c9b7

Please sign in to comment.