From 6f58344e7bec8347182f9ac8d151931f48669c01 Mon Sep 17 00:00:00 2001 From: Lorenzo Alberto Maria Ambrosi Date: Fri, 31 Jan 2020 17:21:32 +0100 Subject: [PATCH] Prefix temp permissions script name Change-type: patch Changelog-entry: Prefix temp permissions script name Signed-off-by: Lorenzo Alberto Maria Ambrosi --- lib/shared/permissions.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/shared/permissions.ts b/lib/shared/permissions.ts index 7468ab5b..3329f403 100755 --- a/lib/shared/permissions.ts +++ b/lib/shared/permissions.ts @@ -161,7 +161,10 @@ export async function elevateCommand( options.environment, ); return Bluebird.using( - tmpFileDisposer({ postfix: '.cmd' }), + tmpFileDisposer({ + prefix: 'balena-etcher-electron-', + postfix: '.cmd', + }), async ({ path }) => { await fs.writeFile(path, launchScript); if (isWindows) {