fixes
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Diagnostics;
|
||||
using System.Runtime.InteropServices;
|
||||
using Pilz.Runtime;
|
||||
|
||||
namespace Pilz.Updating.Client;
|
||||
@@ -68,4 +69,21 @@ public static class Utils
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void MakeExecutable(string filePath)
|
||||
{
|
||||
var pChmod = new Process
|
||||
{
|
||||
StartInfo = new ProcessStartInfo
|
||||
{
|
||||
FileName = "chmod",
|
||||
Arguments = $"+x \"{filePath}\"",
|
||||
RedirectStandardOutput = true,
|
||||
UseShellExecute = false,
|
||||
CreateNoWindow = true,
|
||||
},
|
||||
};
|
||||
pChmod.Start();
|
||||
pChmod.WaitForExit();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user