Browse Source

Fix input variable

IXLLEGACYIXL 2 years ago
parent
commit
75b69d6d2b
1 changed files with 4 additions and 4 deletions
  1. 4 4
      BuildDocs.ps1

+ 4 - 4
BuildDocs.ps1

@@ -87,9 +87,9 @@ function Ask-IncludeAPI {
     Write-Host -ForegroundColor Yellow "  [N] No"
     Write-Host -ForegroundColor Yellow "  [N] No"
     Write-Host ""
     Write-Host ""
 
 
-    $input = Read-Host -Prompt "Your choice [Y, N, or ENTER (default is Y)]"
+    $answer = Read-Host -Prompt "Your choice [Y, N, or ENTER (default is Y)]"
 
 
-    return ($input -eq "Y" -or $input -eq "y" -or $input -eq "")
+    return ($answer -ieq "Y" -or $answer -eq "")
 }
 }
 
 
 function Ask-UseExistingAPI {
 function Ask-UseExistingAPI {
@@ -100,9 +100,9 @@ function Ask-UseExistingAPI {
     Write-Host -ForegroundColor Yellow "  [N] No"
     Write-Host -ForegroundColor Yellow "  [N] No"
     Write-Host ""
     Write-Host ""
 
 
-    $input = Read-Host -Prompt "Your choice [Y, N, or ENTER (default is Y)]"
+    $answer = Read-Host -Prompt "Your choice [Y, N, or ENTER (default is Y)]"
 
 
-    return ($input -eq "Y" -or $input -eq "y" -or $input -eq "")
+    return ($answer -ieq "y" -or $answer -eq "")
 }
 }
 
 
 function Copy-ExtraItems {
 function Copy-ExtraItems {