Add ps1 to windows executable extensions

pull/564/head
Ted Yu 2019-01-31 09:19:38 -08:00 committed by Ted Yu
parent 9487d37666
commit 9e227af65c
1 changed files with 1 additions and 1 deletions

View File

@ -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