summaryrefslogtreecommitdiff
path: root/src/Propellor/CmdLine.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Propellor/CmdLine.hs')
-rw-r--r--src/Propellor/CmdLine.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Propellor/CmdLine.hs b/src/Propellor/CmdLine.hs
index bb9b470e..7a4fdd7c 100644
--- a/src/Propellor/CmdLine.hs
+++ b/src/Propellor/CmdLine.hs
@@ -196,10 +196,10 @@ spin target relay hst = do
, "fi"
]
- runcmd = mkcmd [ "cd " ++ localdir ++ " && ./propellor " ++ cmd ]
+ runcmd = mkcmd [ "cd " ++ localdir ++ " && ./propellor --continue " ++ shellEscape (show cmd) ]
cmd = if isNothing relay
- then "--continue " ++ shellEscape (show (SimpleRun target))
- else "--spin " ++ shellEscape target
+ then SimpleRun target
+ else Spin target relay
runparams = catMaybes
[ if isJust relay then Just "-A" else Nothing
, Just "-t"