From 802ccc1b9a0b09adb874bdb0f9599a6b056cbbb6 Mon Sep 17 00:00:00 2001 From: Tim Perry Date: Tue, 7 Aug 2018 19:06:15 +0200 Subject: [PATCH] Fix bug where the sudo helper failed in os initialize Change-type: patch Signed-off-by: Tim Perry --- lib/utils/helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/helpers.ts b/lib/utils/helpers.ts index f61cdefd..6179b47c 100644 --- a/lib/utils/helpers.ts +++ b/lib/utils/helpers.ts @@ -62,7 +62,7 @@ export function stateToString(state: OperationState) { export function sudo( command: string[], - { stderr, msg }: { stderr?: NodeJS.WritableStream; msg?: string }, + { stderr, msg }: { stderr?: NodeJS.WritableStream; msg?: string } = {}, ) { const { executeWithPrivileges } = require('./sudo');