Skip to content

Commit

Permalink
Use os.PathListSeparator
Browse files Browse the repository at this point in the history
  • Loading branch information
Sumoa authored and Christof Huber committed Apr 3, 2024
1 parent 5caaa6d commit aec4111
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion environment/container/kubernetes/kubeconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package kubernetes
import (
"context"
"fmt"
"os"
"path/filepath"
"strings"
"time"
Expand Down Expand Up @@ -44,7 +45,7 @@ func (c kubernetesRuntime) provisionKubeconfig(ctx context.Context) error {
kubeconfFile := filepath.Join(hostKubeDir, "config")
envKubeConfFile := c.host.Env("KUBECONFIG")
if envKubeConfFile != "" {
kubeconfFile = strings.Split(envKubeConfFile, ":")[0]
kubeconfFile = strings.Split(envKubeConfFile, os.PathListSeparator)[0]
}
tmpkubeconfFile := filepath.Join(hostKubeDir, "."+profile, "colima-temp")

Expand Down

0 comments on commit aec4111

Please sign in to comment.