@@ -18,39 +18,32 @@ if ('' -eq $InstallDirectory)
18
18
$InstallDirectory = Join-Path - Path $personalModules - ChildPath PSParallel
19
19
}
20
20
21
- if ( ! (Test-Path $InstallDirectory ))
21
+ if ( -not (Test-Path $InstallDirectory ))
22
22
{
23
- $null = mkdir $InstallDirectory
23
+ $null = mkdir $InstallDirectory
24
24
}
25
25
26
-
27
- $moduleFileList = @ (
28
- ' PSParallel.psd1'
29
- )
30
- $binaryFileList = ' src\PsParallel\bin\Release\PSParallel.dll'
31
- $localizations = @ {
32
- ' en-us' = @ (
33
- ' PSParallel.dll-Help.xml'
34
- ' about_PSParallel.Help.txt'
35
- )
36
- }
37
-
38
- foreach ($kv in $localizations.GetEnumerator ())
39
- {
40
- $lang = $kv.Name
41
- if (-not (Test-Path $InstallDirectory \$lang ))
42
- {
43
- $null = MkDir $InstallDirectory \$lang
44
- }
45
- foreach ($v in $kv.Value ){
46
- $locPath = Join-Path $lang $v
47
- Copy-Item $rootDir \module\$locPath - Destination $InstallDirectory \$locPath
48
- }
26
+ @ (
27
+ ' module\PSParallel.psd1'
28
+ ' src\PsParallel\bin\Release\PSParallel.dll'
29
+ ).Foreach {Copy-Item " $rootdir \$_ " - Destination $InstallDirectory }
30
+
31
+ $lang = @ (' en-us' )
32
+
33
+ $lang.Foreach {
34
+ $lang = $_
35
+ $langDir = " $InstallDirectory \$lang "
36
+ if (-not (Test-Path $langDir ))
37
+ {
38
+ $null = MkDir $langDir
39
+ }
40
+
41
+ @ (
42
+ ' PSParallel.dll-Help.xml'
43
+ ' about_PSParallel.Help.txt'
44
+ ).Foreach {Copy-Item " $rootDir \module\$lang \$_ " - Destination $langDir }
49
45
}
50
46
51
- $binaryFileList | foreach { Copy-Item " $rootDir \$_ " - Destination $InstallDirectory }
52
- $moduleFileList | foreach {Copy-Item " $rootdir \module\$_ " - Destination $InstallDirectory \$_ }
53
-
54
47
Get-ChildItem - Recurse - Path $InstallDirectory
55
48
56
49
$cert = Get-Item Cert:\CurrentUser\My\98D6087848D1213F20149ADFE698473429A9B15D
0 commit comments