From e5cc051edff65b29ebb86378f9855d8fab7ef8a1 Mon Sep 17 00:00:00 2001 From: Kevin Woley Date: Fri, 7 May 2021 20:06:55 -0700 Subject: [PATCH] remove uneeded -replace parameter --- backup.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup.ps1 b/backup.ps1 index e215094..8f8cfd4 100644 --- a/backup.ps1 +++ b/backup.ps1 @@ -140,7 +140,7 @@ function Invoke-Backup { # Build the new list of folders from settings (if there are any) $folder_list = New-Object System.Collections.Generic.List[System.Object] ForEach ($path in $item.Value) { - $p = '"{0}"' -f ((Join-Path $root_path $path) -replace "\\$", "") + $p = '"{0}"' -f ((Join-Path $root_path $path) -replace "\\$") $folder_list.Add($p) }