Skip to content

Commit

Permalink
bug: disable powershell telemetry when running script
Browse files Browse the repository at this point in the history
  • Loading branch information
AdmiringWorm committed Mar 24, 2021
1 parent 7a9b9e2 commit fe6ad15
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg-upd/src/runners/powershell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ impl ScriptRunner for PowershellRunner {

let cmd = Command::new(path)
.current_dir(cwd)
.env("POWERSHELL_TELEMETRY_OPTOUT", "1")
.args(&["-NoProfile", "-NonInteractive", "-Command"])
.arg(runner_template)
.stdout(Stdio::piped())
Expand Down

0 comments on commit fe6ad15

Please sign in to comment.