From 0601052833bfb97cc178cdbd7aa150ecec4c7e5b Mon Sep 17 00:00:00 2001 From: zqqw Date: Mon, 26 Oct 2020 02:11:42 +0000 Subject: execRedirect - pipe stdout from child --- src/pacman.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pacman.nim') 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 -- cgit v1.2.3-70-g09d2