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

Better function naming.

parent 3a4739d4
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
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