propellor spin
This commit is contained in:
parent
d5091b6082
commit
dccdf0c0f0
|
@ -202,6 +202,7 @@ spin hn hst = do
|
||||||
go cacheparams privdata = withBothHandles createProcessSuccess (proc "ssh" $ cacheparams ++ [user, bootstrapcmd]) $ \(toh, fromh) -> do
|
go cacheparams privdata = withBothHandles createProcessSuccess (proc "ssh" $ cacheparams ++ [user, bootstrapcmd]) $ \(toh, fromh) -> do
|
||||||
let loop = do
|
let loop = do
|
||||||
status <- getMarked fromh statusMarker
|
status <- getMarked fromh statusMarker
|
||||||
|
print (">>", status)
|
||||||
case readish =<< status of
|
case readish =<< status of
|
||||||
Just NeedRepoUrl -> do
|
Just NeedRepoUrl -> do
|
||||||
sendMarked toh repoUrlMarker
|
sendMarked toh repoUrlMarker
|
||||||
|
@ -211,7 +212,6 @@ spin hn hst = do
|
||||||
sendprivdata toh privdata
|
sendprivdata toh privdata
|
||||||
loop
|
loop
|
||||||
Just NeedGitPush -> do
|
Just NeedGitPush -> do
|
||||||
print "NeedGitPush"
|
|
||||||
sendMarked toh gitPushMarker ""
|
sendMarked toh gitPushMarker ""
|
||||||
unlessM (boolSystem "git" [Param "send-pack", Param "--thin", Param "."]) $
|
unlessM (boolSystem "git" [Param "send-pack", Param "--thin", Param "."]) $
|
||||||
warningMessage "git send-pack failed"
|
warningMessage "git send-pack failed"
|
||||||
|
|
Loading…
Reference in New Issue