Skip to content

Commit 6f06052

Browse files
Update bito-cra.ps1 - bitbucket provider check
1 parent 399e323 commit 6f06052

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cra-scripts/bito-cra.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ function Validate-GitProvider {
4848
# Convert the input to uppercase
4949
$git_provider_val = $git_provider_val.ToUpper()
5050

51-
# Check if the converted value is either "GITLAB" or "GITHUB"
52-
if ($git_provider_val -ne "GITLAB" -and $git_provider_val -ne "GITHUB") {
53-
Write-Host "Invalid git provider value. Please enter either GITLAB or GITHUB."
51+
# Check if the converted value is either "GITLAB" or "GITHUB" or "BITBUCKET"
52+
if ($git_provider_val -ne "GITLAB" -and $git_provider_val -ne "GITHUB" -and $git_provider_val -ne "BITBUCKET") {
53+
Write-Host "Invalid git provider value. Please enter either GITLAB or GITHUB or BITBUCKET."
5454
exit 1
5555
}
5656

0 commit comments

Comments
 (0)