Merge pull request #2123 from SomtochiAma/gitlab-custom-ca

Fix GitHub bootstrap when using custom TLS CA
This commit is contained in:
Stefan Prodan 2021-11-23 17:31:56 +02:00 committed by GitHub
commit 3654e221a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -141,7 +141,7 @@ func bootstrapGitHubCmdRun(cmd *cobra.Command, args []string) error {
defer os.RemoveAll(manifestsBase)
var caBundle []byte
if bootstrapArgs.caFile != " " {
if bootstrapArgs.caFile != "" {
var err error
caBundle, err = os.ReadFile(bootstrapArgs.caFile)
if err != nil {