Skip to content
Snippets Groups Projects
Commit 6d9b5a04 authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Make sure we found an update package matching our pattern.

Refers to #13
parent b97a16d1
No related branches found
No related tags found
No related merge requests found
......@@ -260,6 +260,12 @@ function Copy-ServiceFiles {
Where-Object {$_ -match $Pattern} |
Sort-Object |
Select-Object -Last 1
if ([string]::IsNullOrEmpty($PkgDir)) {
Write-Host "ERROR: couldn't find package matching '$($Pattern)'!"
Exit
}
Stop-MyService "Trying to update service using package [$($PkgDir)]."
Write-Verbose "Update source package: $($PkgDir)"
Copy-Item -Recurse -Force -ErrorAction Stop `
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment