diff --git a/AutoTx-Updater/UpdaterConfig-Example.inc.ps1 b/AutoTx-Updater/UpdaterConfig-Example.inc.ps1 index 38327373b00aed9c74a17469077164038b9251fb..8f95c8872f1c4a72683594af24d0511845d4474d 100644 --- a/AutoTx-Updater/UpdaterConfig-Example.inc.ps1 +++ b/AutoTx-Updater/UpdaterConfig-Example.inc.ps1 @@ -4,6 +4,7 @@ $InstallationPath = "C:\Tools\AutoTx" $ServiceName = "AutoTx" $UpdateSourcePath = "\\fileserver.mydomain.xy\share\\_AUTOTX_" +$Pattern = 'build_[0-9]{4}-[0-9]{2}-[0-9]{2}_' $EmailFrom = "admin@mydomain.xy" $EmailTo = "admin@mydomain.xy" diff --git a/AutoTx/Resources/Provide-UpdaterPackage.ps1 b/AutoTx/Resources/Provide-UpdaterPackage.ps1 index 85b20fde9c73c02747c80d293caa7f954eca2f70..e852ee77d255fe710b748cc27364fc1dd7304fd7 100644 --- a/AutoTx/Resources/Provide-UpdaterPackage.ps1 +++ b/AutoTx/Resources/Provide-UpdaterPackage.ps1 @@ -14,7 +14,6 @@ catch { $UpdateBinariesPath = "$($UpdateSourcePath)\Service\Binaries" -$Pattern = 'build_[0-9]{4}-[0-9]{2}-[0-9]{2}_' $PackageDir = Get-ChildItem -Directory -Name | Where-Object {$_ -match $Pattern} |