Fix bug where the sudo helper failed in os initialize

Change-type: patch
Signed-off-by: Tim Perry <tim@resin.io>
This commit is contained in:
Tim Perry 2018-08-07 19:06:15 +02:00
parent b6ef251625
commit 802ccc1b9a

View File

@ -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');