From e1e49095a4ae0b3c8678fc232a0c2ad5fe96beda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miskolczi=20Rich=C3=A1rd?= Date: Sun, 16 Apr 2023 20:43:04 +0200 Subject: [PATCH] so uhh this doesn't work --- Common/PasswordGenerator.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Common/PasswordGenerator.cs b/Common/PasswordGenerator.cs index 84032a0..d6106c5 100644 --- a/Common/PasswordGenerator.cs +++ b/Common/PasswordGenerator.cs @@ -37,13 +37,13 @@ public static class PasswordGenerator ProcessBuilder pb = new ProcessBuilder(); 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}"); - } - else - { - return pb.GetOutput("echo", $"{RandomStr(length, no_symbols)} | gpg --quiet --encrypt --recipient {recipient}"); - } + // } + // else + // { + // return pb.GetOutput("echo", $"{RandomStr(length, no_symbols)} | gpg --quiet --encrypt --recipient {recipient}"); + // } } }