Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
argo
argonix
Commits
a37af9b9
Commit
a37af9b9
authored
Feb 28, 2019
by
Valentin Reis
Browse files
sudo tmpdir removal
parent
dc73fd0f
Pipeline
#5739
passed with stage
in 1 minute and 40 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/Argonix.hs
View file @
a37af9b9
...
...
@@ -251,13 +251,13 @@ 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"
liftIO
$
createAndSetTMPDIR
"./nixtmpdir"
vshell
"sudo rm -rf result"
empty
>>=
\
case
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
)
liftIO
$
createAndSetTMPDIR
"./nixtmpdir"
doVerbose
$
printInfo
"running nix-build for the containers attribute."
doVerbose
$
printCommand
$
"nix-build "
<>
pack
(
unwords
(
nixArguments
"containers"
sa
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment