mirror of https://github.com/k3s-io/k3s
Add ps1 to windows executable extensions
parent
9487d37666
commit
9e227af65c
|
@ -229,7 +229,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