From a2dd1b45ae53da590fee45eb89a30c0326b737e3 Mon Sep 17 00:00:00 2001
From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch>
Date: Mon, 5 Mar 2018 14:50:00 +0100
Subject: [PATCH] Improve name of variable.

---
 Scripts/Install-Service.ps1 | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/Scripts/Install-Service.ps1 b/Scripts/Install-Service.ps1
index ad8e4e5..ae473b3 100644
--- a/Scripts/Install-Service.ps1
+++ b/Scripts/Install-Service.ps1
@@ -41,18 +41,18 @@ function Start-MyService {
 }
 
 
-function Copy-FileIfNew([string]$SourcePath, [string]$Destination) {
-    # SourcePath is expected to be a FILE name
+function Copy-FileIfNew([string]$SourceFile, [string]$Destination) {
+    # SourceFile is expected to be a FILE name
     # Destination is expected to be a PATH
-    if (Test-Path "$Destination\$SourcePath") {
+    if (Test-Path "$Destination\$SourceFile") {
         return
     }
     try {
-        Copy-Item -Path $SourcePath -Destination $Destination -ErrorAction Stop
+        Copy-Item -Path $SourceFile -Destination $Destination -ErrorAction Stop
     }
     catch {
         $ex = $_.Exception
-        Write-Host "Copying $($SourcePath) FAILED!" -Fore Red
+        Write-Host "Copying $($SourceFile) FAILED!" -Fore Red
         Write-Host $ex.Message
         Exit
     }
-- 
GitLab