From 23c500684fa6811120f9bfc747b6a6323c135328 Mon Sep 17 00:00:00 2001
From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch>
Date: Sun, 11 Mar 2018 15:29:30 +0100
Subject: [PATCH] Continue if the status file could not be removed.

Important if it has already been removed before, otherwise the updater
would stop at this point.
---
 Updater/Update-Service.ps1 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Updater/Update-Service.ps1 b/Updater/Update-Service.ps1
index ff1ff49..d5e4708 100644
--- a/Updater/Update-Service.ps1
+++ b/Updater/Update-Service.ps1
@@ -431,7 +431,7 @@ function Update-ServiceBinaries {
     }
 
     Log-Debug "<ForceServiceCleanup> removing status file [$($StatusXml)]"
-    Remove-Item -Force $StatusXml
+    Remove-Item -Force $StatusXml -ErrorAction Ignore
     Return $True
 }
 
-- 
GitLab