This commit is contained in:
rmeijer_huizehetoost committed 2025-10-29 11:32:15 +01:00
1 parent 3ce2527fda
commit a5ab17b225
2 files changed
+6 -6

No files matched your search

+4 -4
View File
@@ -295,8 +295,8 @@ function Install-MedewerkersApps {
$content = Get-Content $medewerkersFile -Raw
$apps = @()
# Parse de PowerShell array uit het bestand
if ($content -match '\$apps\s*=\s*@\s*\((.*?)\)') {
# Parse de PowerShell array uit het bestand (multiline pattern)
if ($content -match '(?s)\$apps\s*=\s*@\s*\((.*?)\)') {
$appsString = $matches[1]
$apps = $appsString -split ',' | ForEach-Object { $_.Trim().Trim('"').Trim("'") } | Where-Object { $_ -ne '' }
}
@@ -370,8 +370,8 @@ function Install-GastenApps {
$content = Get-Content $gastenFile -Raw
$apps = @()
# Parse de PowerShell array uit het bestand
if ($content -match '\$apps\s*=\s*@\s*\((.*?)\)') {
# Parse de PowerShell array uit het bestand (multiline pattern)
if ($content -match '(?s)\$apps\s*=\s*@\s*\((.*?)\)') {
$appsString = $matches[1]
$apps = $appsString -split ',' | ForEach-Object { $_.Trim().Trim('"').Trim("'") } | Where-Object { $_ -ne '' }
}
+2 -2
View File
@@ -133,8 +133,8 @@ try {
$content = Get-Content $appsFile -Raw
$apps = @()
# Parse the PowerShell array from the file
if ($content -match '\$apps\s*=\s*@\s*\((.*?)\)') {
# Parse the PowerShell array from the file (multiline pattern)
if ($content -match '(?s)\$apps\s*=\s*@\s*\((.*?)\)') {
$appsString = $matches[1]
$apps = $appsString -split ',' | ForEach-Object { $_.Trim().Trim('"').Trim("'") } | Where-Object { $_ -ne '' }
}