Merge pull request #21 from Romanitho/Romanitho-patch-1

Fixed issue when gathering xml config file.
pull/23/head
Romain 2022-03-07 10:43:18 +01:00 committed by GitHub
commit 8f21cebd22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ function Get-ExcludedApps{
function Start-WAUUpdateCheck{ function Start-WAUUpdateCheck{
#Get AutoUpdate status #Get AutoUpdate status
[xml]$UpdateStatus = Get-Content "$WorkingDir\config\config.xml" -Encoding UTF8 -ErrorAction SilentlyContinue [xml]$UpdateStatus = Get-Content "$WorkingDir\config\config.xml" -Encoding UTF8 -ErrorAction SilentlyContinue
$AutoUpdateStatus = $UpdateStatus.app.autoupdate $AutoUpdateStatus = $UpdateStatus.app.WAUautoupdate
#Check if AutoUpdate is enabled #Check if AutoUpdate is enabled
if ($AutoUpdateStatus -eq $false){ if ($AutoUpdateStatus -eq $false){