summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2017-04-01 14:47:41 +0800
committerruki <[email protected]>2017-04-01 14:47:41 +0800
commite215d77087a81a619a241e24077b5066929a2aa2 (patch)
tree139ea40ea3a0b9d84d4ca2d090c43eea6e1c73b2
parentc5c844960ffc68bf7b701b0fbb1577b79fd2b15c (diff)
fix find xmake.lua path on windows
-rw-r--r--xmake/core/main.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/main.lua b/xmake/core/main.lua
index 6b95b0a75..8dda0a491 100644
--- a/xmake/core/main.lua
+++ b/xmake/core/main.lua
@@ -106,7 +106,7 @@ function main._init()
while os.isdir(dir) do
table.insert(dirs, 1, dir)
local parentdir = path.directory(dir)
- if parentdir ~= dir then
+ if parentdir and parentdir ~= dir and parentdir ~= '.' then
dir = parentdir
else
break