bb924b63e6
We recently moved over the git client from the merge script to the common dev-infra utils. This made specifying a token optional, but it looks like the logic for sanitizing messages doesn't account for that, and we currently add `<TOKEN>` between every message character. e.g. ``` Executing: git <TOKEN>g<TOKEN>i<TOKEN>t<TOKEN> <TOKEN>s<TOKEN>t<TOKEN>a<TOKEN>t<TOKEN>u<TOKEN>s<TOKEN> ``` PR Close #37489
18 lines
523 B
TypeScript
18 lines
523 B
TypeScript
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
|
|
import {exec as _exec, ExecOptions, ShellString} from 'shelljs';
|
|
|
|
/**
|
|
* Runs an given command as child process. By default, child process
|
|
* output will not be printed.
|
|
*/
|
|
export function exec(cmd: string, opts?: Omit<ExecOptions, 'async'>): ShellString {
|
|
return _exec(cmd, {silent: true, ...opts, async: false});
|
|
}
|