-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathl4d2ServerBuilder.ps1
More file actions
39 lines (31 loc) · 995 Bytes
/
l4d2ServerBuilder.ps1
File metadata and controls
39 lines (31 loc) · 995 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
$pluginRepositoryPath = "c:\l4d2-serverbuilder\repository"
function Check-PluginFolder {
param (
[Parameter(Mandatory)]
[string]$RepositoryPath
)
write-host "Checking for Builder Information"
$pluginFolderList = Get-ChildItem -Path $RepositoryPath
$buildinfoSuccess = $null
$buildinfoSuccess = @{}
foreach ($pluginFolder in $PluginFolderList) {
$builderFolderLocation = $pluginFolder.FullName + "\builderinfo.csv"
if(Test-Path $builderFolderLocation -PathType Leaf){
write-host "- Found Builder Information File in" $pluginFolder.Name -ForegroundColor DarkGreen
$buildinfoSuccess.add($pluginFolder.FullName,$builderFolderLocation)
}
else
{
write-host "- Builder Information File Missing in" $pluginFolder.Name -ForegroundColor Red
}
}
return $buildinfoSuccess
}
function Read-BuilderInformation {
param (
[Parameter(Mandatory)]
[string[]]$requiringReading
)
}
$pluginswithBuildInfo = Check-PluginFolder $pluginRepositoryPath
$pluginswithBuildInfo