mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Merge pull request #73599 from tedyu/master
Add ps1 to windows executable extensions
This commit is contained in:
commit
b8b0dbcb7d
@ -235,7 +235,7 @@ func isExecutable(fullPath string) (bool, error) {
|
|||||||
fileExt := strings.ToLower(filepath.Ext(fullPath))
|
fileExt := strings.ToLower(filepath.Ext(fullPath))
|
||||||
|
|
||||||
switch fileExt {
|
switch fileExt {
|
||||||
case ".bat", ".cmd", ".com", ".exe":
|
case ".bat", ".cmd", ".com", ".exe", ".ps1":
|
||||||
return true, nil
|
return true, nil
|
||||||
}
|
}
|
||||||
return false, nil
|
return false, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user