Skip to content

Commit 7fffe5a

Browse files
committed
fix: home dir nonexistent on windows
1 parent ef45bb7 commit 7fffe5a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lua/kubectl/actions/commands.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ function M.configure_command(cmd, envs, args)
2727
end
2828

2929
table.insert(result.env, "PATH=" .. current_env["PATH"])
30-
table.insert(result.env, "HOME=" .. current_env["HOME"])
30+
if current_env["HOME"] then
31+
table.insert(result.env, "HOME=" .. current_env["HOME"])
32+
end
3133
if current_env["KUBECONFIG"] then
3234
table.insert(result.env, "KUBECONFIG=" .. current_env["KUBECONFIG"])
3335
end

0 commit comments

Comments
 (0)