fix apps
This commit is contained in:
1 parent
3ce2527fda
commit
a5ab17b225
2 files changed
+6
-6
No files matched your search
+4
-4
@@ -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 '' }
|
||||
}
|
||||
|
||||
@@ -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 '' }
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user