Skip to content

Commit 115ae88

Browse files
committed
Fix indentation in new script function
1 parent c9b0b24 commit 115ae88

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

tools/AzureRM/AzureRM.psm1

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,18 @@ function Test-AdminRights([string]$Scope)
4040

4141
function CheckIncompatibleVersion([bool]$Force)
4242
{
43-
$message = "An incompatible version of Azure Resource Manager PowerShell cmdlets is installed. Please uninstall Microsoft Azure PowerShell using the 'Control Panel' before installing these cmdlets. To install these cmdlets regardless of compatibility issues, execute 'Install-AzureRM -Force'."
44-
if ( Test-Path "${env:ProgramFiles(x86)}\Microsoft SDKs\Azure\PowerShell\ResourceManager\AzureResourceManager\AzureResourceManager.psd1")
45-
{
46-
if ($Force)
47-
{
48-
Write-Warning $message
49-
}
50-
else
51-
{
52-
throw $message
53-
}
54-
}
43+
$message = "An incompatible version of Azure Resource Manager PowerShell cmdlets is installed. Please uninstall Microsoft Azure PowerShell using the 'Control Panel' before installing these cmdlets. To install these cmdlets regardless of compatibility issues, execute 'Install-AzureRM -Force'."
44+
if ( Test-Path "${env:ProgramFiles(x86)}\Microsoft SDKs\Azure\PowerShell\ResourceManager\AzureResourceManager\AzureResourceManager.psd1")
45+
{
46+
if ($Force)
47+
{
48+
Write-Warning $message
49+
}
50+
else
51+
{
52+
throw $message
53+
}
54+
}
5555
}
5656

5757
function Install-ModuleWithVersionCheck([string]$Name,[string]$MajorVersion,[string]$Repository,[string]$Scope)

0 commit comments

Comments
 (0)