From 9e227af65c7e01e8542e337d673d727add2d84c1 Mon Sep 17 00:00:00 2001 From: Ted Yu Date: Thu, 31 Jan 2019 09:19:38 -0800 Subject: [PATCH] Add ps1 to windows executable extensions --- pkg/kubectl/cmd/plugin/plugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/kubectl/cmd/plugin/plugin.go b/pkg/kubectl/cmd/plugin/plugin.go index e8463f0455..b52acd149a 100644 --- a/pkg/kubectl/cmd/plugin/plugin.go +++ b/pkg/kubectl/cmd/plugin/plugin.go @@ -229,7 +229,7 @@ func isExecutable(fullPath string) (bool, error) { fileExt := strings.ToLower(filepath.Ext(fullPath)) switch fileExt { - case ".bat", ".cmd", ".com", ".exe": + case ".bat", ".cmd", ".com", ".exe", ".ps1": return true, nil } return false, nil