This commit is contained in:
2024-09-23 20:35:19 +08:00
parent d905f8c13e
commit 6a6360540b
5 changed files with 11 additions and 8 deletions

View File

@ -8,8 +8,8 @@ class SystemHelper {
static initPowershellPath() async {
try {
var result = await Process.run(powershellPath, ["echo", "ping"]);
if (!result.stdout.toString().startsWith("ping") &&
var result = await Process.run(powershellPath, ["echo", "pong"]);
if (!result.stdout.toString().startsWith("pong") &&
powershellPath == "powershell.exe") {
throw "powershell check failed";
}