diff options
| -rw-r--r-- | xmake/core/base/os.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua index 0cf133491..4a357085d 100644 --- a/xmake/core/base/os.lua +++ b/xmake/core/base/os.lua @@ -754,7 +754,8 @@ function os.execv(program, argv, opt) local file = io.open(filename, 'r') local head = file:read("l") if head and head:startswith("#!") then - -- we cannot run /bin/sh directly on msys2/cygwin + -- we cannot run `/bin/sh` directly on msys2/cygwin + -- because `/bin/sh` is not real file path, maybe we need convert it. local subhost = os.subhost() if subhost == "msys" or subhost == "cygwin" then filename = "sh" |
