Skip to content

Commit

Permalink
defer getEnv call in wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
wz1000 committed Jan 29, 2021
1 parent 5f5e029 commit 8c973f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wrappers/cabal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import System.IO (openFile, hClose, hPutStrLn, IOMode(..))
main :: IO ()
main = do
args <- getArgs
output_file <- getEnv "HIE_BIOS_OUTPUT"
case args of
"--interactive":_ -> do
output_file <- getEnv "HIE_BIOS_OUTPUT"
h <- openFile output_file AppendMode
getCurrentDirectory >>= hPutStrLn h
mapM_ (hPutStrLn h) args
Expand Down

0 comments on commit 8c973f5

Please sign in to comment.