Fix time reporting
This commit is contained in:
parent
15b4a18c1a
commit
6553976beb
1 changed files with 2 additions and 2 deletions
|
@ -49,12 +49,12 @@ export const posixPath = (platformPath: string) =>
|
|||
* > output, this might not be the best option and it might be better to use the
|
||||
* > underlying functions.
|
||||
*/
|
||||
export const execAsync = (command: string | string[]) => {
|
||||
export const execAsync = async (command: string | string[]) => {
|
||||
const escapedCommand = Array.isArray(command)
|
||||
? shellescape(command)
|
||||
: command;
|
||||
const startTime = Date.now();
|
||||
const result = execAsync_(escapedCommand);
|
||||
const result = await execAsync_(escapedCommand);
|
||||
log.debug(
|
||||
() => `${escapedCommand} (${Math.round(Date.now() - startTime)} ms)`,
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue