Skip to content

Commit

Permalink
fix separator for KUBECONFIG env var
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Seese <[email protected]>
  • Loading branch information
mikeseese committed Jul 24, 2024
1 parent b1861e5 commit 9b4ec9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/rancher-desktop/backend/kubeconfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ export async function getKubeConfigPaths(): Promise<string[]> {
if (process.env.KUBECONFIG && process.env.KUBECONFIG.length > 0) {
const results: string[] = [];

for (const filePath of process.env.KUBECONFIG.split(path.delimiter)) {
const delimiter = os.platform() === 'win32' ? ';' : ':';
for (const filePath of process.env.KUBECONFIG.split(delimiter)) {

Check warning on line 129 in pkg/rancher-desktop/backend/kubeconfig.ts

View workflow job for this annotation

GitHub Actions / test

Expected blank line before this statement

Check warning on line 129 in pkg/rancher-desktop/backend/kubeconfig.ts

View workflow job for this annotation

GitHub Actions / lint (macos-latest)

Expected blank line before this statement
if (await hasAccess(filePath)) {
results.push(filePath);
}
Expand Down

0 comments on commit 9b4ec9a

Please sign in to comment.