From 00defdd63148643fc30012dc3110fe3e2e78b19d Mon Sep 17 00:00:00 2001 From: Lauri Nevala Date: Thu, 4 Jun 2020 14:45:54 +0300 Subject: [PATCH] Fix pod shell command on Windows (#402) Signed-off-by: Lauri Nevala --- dashboard/client/components/+workloads-pods/pod-menu.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/client/components/+workloads-pods/pod-menu.tsx b/dashboard/client/components/+workloads-pods/pod-menu.tsx index b96e3a457e..42425c09c6 100644 --- a/dashboard/client/components/+workloads-pods/pod-menu.tsx +++ b/dashboard/client/components/+workloads-pods/pod-menu.tsx @@ -22,7 +22,7 @@ export class PodMenu extends React.Component { const { object: pod } = this.props const containerParam = container ? `-c ${container}` : "" let command = `kubectl exec -i -t -n ${pod.getNs()} ${pod.getName()} ${containerParam} "--"` - if (process.platform !== "win32") { + if (window.navigator.platform !== "Win32") { command = `exec ${command}` } if (pod.getSelectedNodeOs() === "windows") {