Commit 68f3d1b9 authored by Valentin Reis's avatar Valentin Reis
Browse files

adds ./result removal.

parent a590f4fc
Pipeline #5534 passed with stage
in 1 minute and 27 seconds
......@@ -247,6 +247,10 @@ setupSystem sa = do
$ inproc "mktemp" ["-d", "/tmp/deletable-nix-cache-XXXX"] empty
export "XDG_CACHE_HOME" $ lineToText cachedir
doVerbose $ printInfo $ lineToText cachedir <> " exported to XDG_CACHE_HOME"
vshell "sudo rm -rf result" empty >>= \case
ExitSuccess -> printInfo "removed ./result"
ExitFailure n ->
die ("Failed to remove ./result " <> repr n)
doVerbose $ printInfo "running nix-build for the containers attribute."
doVerbose $ printCommand $ "nix-build " <> pack
(unwords (nixArguments "containers" sa))
......
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