We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d67eab commit 576fb21Copy full SHA for 576fb21
SSH/Setup-SSH.ps1
@@ -18,6 +18,13 @@ if (-not (Test-Path "${ConfigDir}")) {
18
Write-Host "The SSH configuration was not found at ${ConfigDir}"
19
return
20
}
21
+
22
+$ControlMasterDir = "${ConfigDir}\controlmasters"
23
+if (-not (Test-Path "${ControlMasterDir}")) {
24
+ Write-Host "The SSH ControlMasters directory was not found. Creating it at `"${ControlMasterDir}`"."
25
+ New-Item -Path "${ControlMasterDir}" -ItemType "directory"
26
+}
27
28
$SSHDir = "${HOME}\.ssh"
29
30
# This should be as early as possible to avoid loading the function definitions etc. twice.
0 commit comments