File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ function Validate-GitProvider {
4949 $git_provider_val = $git_provider_val.ToUpper ()
5050
5151 # 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" -and $git_provider_val -ne " BITBUCKET-ENTERPRISE " ) {
53- Write-Host " Invalid git provider value. Please enter either GITLAB or GITHUB or BITBUCKET or BITBUCKET-ENTERPRISE ."
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
@@ -698,7 +698,7 @@ $docker_enc_params=
698698
699699if ($mode -eq " server" ) {
700700 if (-not ([string ]::IsNullOrEmpty($props [$param_bito_access_key ])) -and -not ([string ]::IsNullOrEmpty($props [$param_git_access_token ]))) {
701- if ($props [$param_git_provider ] -eq " BITBUCKET" -or $props [ $param_git_provider ] -eq " BITBUCKET-ENTERPRISE " ) {
701+ if ($props [$param_git_provider ] -eq " BITBUCKET" ) {
702702 $git_secret = $props [$param_git_access_token ]
703703 } else {
704704 $git_secret = " $ ( $props [$param_bito_access_key ]) @#~^$ ( $props [$param_git_access_token ]) "
You can’t perform that action at this time.
0 commit comments