Skip to content

Commit 02c3bb4

Browse files
committed
fix path
1 parent ee60c38 commit 02c3bb4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/UpdateModules.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,14 @@ function Create-ModulePsm1
6969

7070
if ($ModulePath -like "*Profile*")
7171
{
72-
$SpecialFolderPath = Join-Path -Path ([Environment]::GetFolderPath("ApplicationData")) -ChildPath "Windows Azure Powershell"
73-
$DeprecationFile = Join-Path -Path $SpecialFolderPath -ChildPath "PSDeprecationWarning.txt"
7472
$WarningMessage = "`"PowerShell version 3 and 4 will no longer be supported starting in May 2018. Please update to the latest version of PowerShell 5.1`""
7573
$template = $template -replace "%PSVersionDeprecationMessage%",
76-
"if (!(Test-Path '$DeprecationFile')) { `
74+
"`$SpecialFolderPath = Join-Path -Path ([Environment]::GetFolderPath('ApplicationData')) -ChildPath 'Windows Azure Powershell' `
75+
`$DeprecationFile = Join-Path -Path `$SpecialFolderPath -ChildPath 'PSDeprecationWarning.txt' `
76+
if (!(Test-Path `$DeprecationFile)) { `
7777
Write-Warning $WarningMessage `
7878
try { `
79-
$WarningMessage | Out-File -FilePath '$DeprecationFile' `
79+
$WarningMessage | Out-File -FilePath `$DeprecationFile `
8080
} catch {} `
8181
}"
8282
}

0 commit comments

Comments
 (0)