mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
os: add .cmd
to the list of Windows executable suffixes (#14839)
This commit is contained in:
parent
b0fe21f018
commit
c10ba6d81a
2 changed files with 2 additions and 2 deletions
|
@ -404,7 +404,7 @@ pub fn is_executable(path string) bool {
|
|||
// 04 Read-only
|
||||
// 06 Read and write
|
||||
p := real_path(path)
|
||||
return exists(p) && (p.ends_with('.exe') || p.ends_with('.bat'))
|
||||
return exists(p) && (p.ends_with('.exe') || p.ends_with('.bat') || p.ends_with('.cmd'))
|
||||
}
|
||||
$if solaris {
|
||||
statbuf := C.stat{}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue