diff --git a/TFS_2018Update3/PauseIndexing.ps1 b/TFS_2018Update3/PauseIndexing.ps1 index 0d3b55e..af0f31b 100644 --- a/TFS_2018Update3/PauseIndexing.ps1 +++ b/TFS_2018Update3/PauseIndexing.ps1 @@ -41,7 +41,7 @@ function PauseWorkItemIndexing Write-Host "This would pause indexing for all the collections. Do you want to continue - Yes or No? " -NoNewline -ForegroundColor Magenta $userInput = Read-Host -if($userInput -like "Yes") +if($userInput -like "Yes" -or $userInput -like "y") { [System.ENVIRONMENT]::CurrentDirectory = $PWD Push-Location @@ -78,5 +78,6 @@ if($userInput -like "Yes") } else { - Write-Warning "Exiting! Indexing was not paused." -ForegroundColor Cyan -} \ No newline at end of file + # Write-Warning has no color + Write-Warning "Exiting! Indexing was not paused." # -ForegroundColor Cyan +}