Prefix temp permissions script name

Change-type: patch
Changelog-entry: Prefix temp permissions script name
Signed-off-by: Lorenzo Alberto Maria Ambrosi <lorenzothunder.ambrosi@gmail.com>
This commit is contained in:
Lorenzo Alberto Maria Ambrosi 2020-01-31 17:21:32 +01:00 committed by Alexis Svinartchouk
parent 07be844985
commit 6f58344e7b

View File

@ -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) {