diff options
author | zqqw | 2020-10-26 02:11:42 +0000 |
---|---|---|
committer | zqqw | 2020-10-26 02:11:42 +0000 |
commit | 0601052833bfb97cc178cdbd7aa150ecec4c7e5b (patch) | |
tree | 3dfe606433ea45dc48e106a8caf0d221f1e1a5f2 /src/pacman.nim | |
parent | f2a93bea278e9f43cad98ca8e74f9a423f36e333 (diff) |
execRedirect - pipe stdout from child
Diffstat (limited to 'src/pacman.nim')
-rw-r--r-- | src/pacman.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pacman.nim b/src/pacman.nim index ed80311..5f1cb4a 100644 --- a/src/pacman.nim +++ b/src/pacman.nim @@ -407,8 +407,8 @@ proc obtainPacmanConfig*(args: seq[Argument]): PacmanConfig = {x} let hasKeyserver = forkWaitRedirect(() => (block: - if dropPrivileges(): - execResult(gpgConfCmd, "--list-options", "gpg") + if dropPrivRedirect(): + execRedirect(gpgConfCmd, "--list-options", "gpg") else: quit(1))) .output |