Commit 4f26826d authored by Valentin Reis's avatar Valentin Reis

print fix

parent 057e9aee
Pipeline #5751 passed with stage
in 2 minutes and 22 seconds
......@@ -256,8 +256,8 @@ setupSystem sa = do
ExitSuccess -> printInfo "removed ./result"
ExitFailure n -> die ("Failed to remove ./result " <> repr n)
vshell "sudo rm -rf nixtmpdir" empty >>= \case
ExitSuccess -> printInfo "removed ./result"
ExitFailure n -> die ("Failed to remove ./result " <> repr n)
ExitSuccess -> printInfo "removed ./nixtmpdir"
ExitFailure n -> die ("Failed to remove ./nixtmpdir " <> repr n)
liftIO $ createAndSetTMPDIR "nixtmpdir"
doVerbose $ printInfo "running nix-build for the containers attribute."
doVerbose $ printCommand $ "nix-build " <> pack
......@@ -283,11 +283,8 @@ setupSystem sa = do
void $ printInfo "Done setting the environment for nix-build up."
where
vshell = verboseShell verbose
verbose = verbosity sa == Verbose
doVerbose = when verbose
createAndSetTMPDIR name = do
{-localpath <- (</> fromText name) <$> pwd-}
let path = "/tmp" </> fromText name
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment