Rename temp scripts to .ps1
PowerShell won't execute scripts that don't end in .ps1redistributables
parent
5e47d8fa3d
commit
06188d5800
|
@ -451,6 +451,10 @@ namespace LANCommander.PlaynitePlugin
|
||||||
{
|
{
|
||||||
var tempPath = Path.GetTempFileName();
|
var tempPath = Path.GetTempFileName();
|
||||||
|
|
||||||
|
File.Move(tempPath, tempPath + ".ps1");
|
||||||
|
|
||||||
|
tempPath = tempPath + ".ps1";
|
||||||
|
|
||||||
Logger.Trace($"Writing script {script.Name} to {tempPath}");
|
Logger.Trace($"Writing script {script.Name} to {tempPath}");
|
||||||
|
|
||||||
File.WriteAllText(tempPath, script.Contents);
|
File.WriteAllText(tempPath, script.Contents);
|
||||||
|
|
Loading…
Reference in New Issue