summaryrefslogtreecommitdiff
path: root/src/Propellor
diff options
context:
space:
mode:
authorJoey Hess2019-01-18 12:11:38 -0400
committerJoey Hess2019-01-18 12:11:38 -0400
commitb3324e7ef7d17c909c59b598f36e84f576135cdd (patch)
tree359e7355910b37a13fbbd9952859dd549008a580 /src/Propellor
parent7da5391e0c21943157a4f49f0e4133ee92fd22c7 (diff)
Fix --spin crash when ~/.ssh/ directory did not already exist.
Diffstat (limited to 'src/Propellor')
-rw-r--r--src/Propellor/Ssh.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Propellor/Ssh.hs b/src/Propellor/Ssh.hs
index a8f50ed0..9ba15d86 100644
--- a/src/Propellor/Ssh.hs
+++ b/src/Propellor/Ssh.hs
@@ -19,7 +19,7 @@ sshCachingParams :: HostName -> IO [CommandParam]
sshCachingParams hn = do
home <- myHomeDir
let socketfile = socketFile home hn
- createDirectoryIfMissing False (takeDirectory socketfile)
+ createDirectoryIfMissing True (takeDirectory socketfile)
let ps =
[ Param "-o"
, Param ("ControlPath=" ++ socketfile)