From c61fccba4a3caf65c5f4f6cb0bab76cb294676fd Mon Sep 17 00:00:00 2001 From: Shital Savekar Date: Thu, 12 Apr 2018 21:11:57 -0700 Subject: [PATCH] Fixing minor bug --- RunAzureTests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RunAzureTests.ps1 b/RunAzureTests.ps1 index cc20357..efe9da0 100644 --- a/RunAzureTests.ps1 +++ b/RunAzureTests.ps1 @@ -45,9 +45,9 @@ Write-Host "-----------$PWD---------" $maxDirLength = 32 -if ( $pwd.Path.Length -gt $maxDirLength) $shortRandomNumber = Get-Random -Maximum 999999 -Minimum 111111 $shortRandomWord = -join ((65..90) | Get-Random -Count 6 | % {[char]$_}) +if ( $pwd.Path.Length -gt $maxDirLength) { $originalWorkingDirectory = $pwd Write-Host "Current working directory length is greather than $maxDirLength. Need to change the working directory."