Skip to content

Commit b632f74

Browse files
committed
Fix typo
1 parent d9c6a0f commit b632f74

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Source/NETworkManager.Profiles/Resources/Migrate-Profiles.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ param (
2626
)
2727

2828
Write-Host "=== NETworkManager ===`n" -ForegroundColor Green
29-
Write-Host "Migrate profiles to versions $NETworkManagerVersion`n"
29+
Write-Host "Migrate profiles to version $NETworkManagerVersion`n"
3030

3131
Write-Host "If you use encrypted profiles:`n 1) Disable profile encryption for all encrypted profiles with the previous NETworkManager version`n https://borntoberoot.net/NETworkManager/FAQ#how-to-disable-profile-file-encryption`n 2) Run this script to migrate the profiles`n 3) Re-enable profile encryption with the newest release of NETworkManager`n https://borntoberoot.net/NETworkManager/FAQ#how-to-enable-profile-file-encryption`n" -ForegroundColor Yellow
3232

@@ -36,7 +36,7 @@ $prompt = ($defaultValue,$prompt)[[bool]$prompt]
3636

3737
Write-Host ""
3838

39-
if(-not(Test-Path -Path $prompt))
39+
if(-not(Test-Path -Path $prompt -PathType Container))
4040
{
4141
Write-Host "$prompt does not exist!" -ForegroundColor Red
4242
return
@@ -51,7 +51,7 @@ foreach($file in Get-ChildItem -Path $prompt -Filter "*.xml")
5151
continue
5252
}
5353

54-
Copy-Item $file.FullName -Destination "$($file.FullName).backup"
54+
Copy-Item $file.FullName -Destination "$($file.FullName).$(Get-Date -f yyyyMMdd_HHmmss).backup"
5555

5656
$Content = Get-Content -Path $file.FullName -Raw
5757
$Content = $Content -replace "<ProfileInfo>","<ProfileInfoSerializable>"

0 commit comments

Comments
 (0)