From 6e9ce12a4140e1ab1781dcf534d1ee8f212dbaeb Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sun, 2 Jul 2023 21:49:00 +0200 Subject: [PATCH] Refactor string substitution --- scripts/Windows/Scripts/Context.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Windows/Scripts/Context.ps1 b/scripts/Windows/Scripts/Context.ps1 index 9442f6c9..961ac169 100644 --- a/scripts/Windows/Scripts/Context.ps1 +++ b/scripts/Windows/Scripts/Context.ps1 @@ -237,8 +237,8 @@ class Context { Measure-Object -Maximum).Maximum + 1; $configName = "Folders"; - $localPath = $localPath -replace "\","/"; - $targetPath = $targetPath -replace "\","/"; + $localPath = $localPath.Replace("\", "/"); + $targetPath = $targetPath.Replace("\", "/"); if ($virtualFiles) { $configName += "WithPlaceholders";