Skip to content

Commit dfc0913

Browse files
committed
manpage: more consistent
1 parent 52d509e commit dfc0913

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cabal-install/src/Distribution/Client/Manpage.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,13 @@ manpageCmd pname commands flags
8282
-- 'less' is borked with color sequences otherwise
8383
let pagerArgs = if takeFileName pager == "less" then ["-R"] else []
8484
-- Pipe output of @nroff@ into @less@
85-
(exitcode, _) <- rawSystemProcAction verbosity
86-
(proc pager pagerArgs) { Process.std_in = Process.CreatePipe }
85+
(ec2, _) <- rawSystemProcAction verbosity
86+
(proc pager pagerArgs) { Process.std_in = Process.CreatePipe }
8787
$ \mIn _ _ -> do
8888
let wIn = fromCreatePipe mIn
8989
hPutStr wIn formatted
9090
hClose wIn
91-
exitWith exitcode
91+
exitWith ec2
9292
where
9393
contents :: String
9494
contents = manpage pname commands

0 commit comments

Comments
 (0)