Adapting to non-static nature of ProcessBuilder
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
|
||||
public static string? New(string recipient, int length, bool no_symbols = false)
|
||||
{
|
||||
return ProcessBuilder.GetOutput("cmd.exe" $"echo {RandomStr(length, no_symbols)} | gpg --quiet --encrypt --recipient {recipient}");
|
||||
return new ProcessBuilder().GetOutput("cmd.exe", $"echo {RandomStr(length, no_symbols)} | gpg --quiet --encrypt --recipient {recipient}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user