From c8614b14ccd0c72275910f0f022b586f87e19d4f Mon Sep 17 00:00:00 2001
From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch>
Date: Wed, 13 Dec 2017 09:28:49 +0100
Subject: [PATCH] Better function naming.

---
 AutoTx-Updater/Update-Service.ps1 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/AutoTx-Updater/Update-Service.ps1 b/AutoTx-Updater/Update-Service.ps1
index cbc6262..c115044 100644
--- a/AutoTx-Updater/Update-Service.ps1
+++ b/AutoTx-Updater/Update-Service.ps1
@@ -25,7 +25,7 @@ $Me = $MyInvocation.MyCommand -replace '.ps1'
 
 ###  function definitions  #####################################################
 
-function Check-ServiceState([string]$ServiceName) {
+function Ensure-ServiceRunning([string]$ServiceName) {
     $Continue = $True
     try {
         $Service = Get-Service $ServiceName -ErrorAction Stop
@@ -342,7 +342,7 @@ function Log-Info([string]$Message) {
 
 
 # first check if the service is installed and running at all
-Check-ServiceState $ServiceName
+Ensure-ServiceRunning $ServiceName
 
 $UpdateConfigPath = "$($UpdateSourcePath)\Configs\$($env:COMPUTERNAME)"
 $UpdateMarkerPath = "$($UpdateSourcePath)\Service\UpdateMarkers"
-- 
GitLab