so uhh this doesn't work

This commit is contained in:
2023-04-16 20:43:04 +02:00
parent 0987b4c280
commit e1e49095a4

View File

@@ -37,13 +37,13 @@ public static class PasswordGenerator
ProcessBuilder pb = new ProcessBuilder(); ProcessBuilder pb = new ProcessBuilder();
pb.ProcessFailed += (e) => ExceptionOccured?.Invoke(e); pb.ProcessFailed += (e) => ExceptionOccured?.Invoke(e);
if (System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) // if (System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{ // {
return pb.GetOutput("cmd.exe", $"echo {RandomStr(length, no_symbols)} | gpg --quiet --encrypt --recipient {recipient}"); return pb.GetOutput("cmd.exe", $"echo {RandomStr(length, no_symbols)} | gpg --quiet --encrypt --recipient {recipient}");
} // }
else // else
{ // {
return pb.GetOutput("echo", $"{RandomStr(length, no_symbols)} | gpg --quiet --encrypt --recipient {recipient}"); // return pb.GetOutput("echo", $"{RandomStr(length, no_symbols)} | gpg --quiet --encrypt --recipient {recipient}");
} // }
} }
} }