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/main.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.nim') diff --git a/src/main.nim b/src/main.nim index d8ad5a5..73030d2 100644 --- a/src/main.nim +++ b/src/main.nim @@ -177,7 +177,7 @@ proc handleHelp(operation: OperationType) = .map(o => @["-" & o.pair.short.get]) .optFirst.get(@[]) & @["-h"] - let (lines, _) = forkWaitRedirect(() => execResult(pacmanCmd & operationArgs)) + let (lines, _) = forkWaitRedirect(() => execRedirect(pacmanCmd & operationArgs)) for line in lines: echo(line.replace(re"\bpacman\b", "pakku")) -- cgit v1.2.3-70-g09d2