From 1ec6011956e78dedd7eea87f484b0a3c56cfef27 Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 4 Jul 2016 14:33:50 +0800 Subject: fix cd bug --- xmake/plugins/project/makefile.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xmake/plugins/project/makefile.lua') diff --git a/xmake/plugins/project/makefile.lua b/xmake/plugins/project/makefile.lua index 60455ca6d..b3bbe58b2 100755 --- a/xmake/plugins/project/makefile.lua +++ b/xmake/plugins/project/makefile.lua @@ -196,7 +196,7 @@ end function make(outputfile) -- enter project directory - os.cd(project.directory()) + local olddir = os.cd(project.directory()) -- remove the log makefile first os.rm(_logfile()) @@ -211,6 +211,6 @@ function make(outputfile) makefile:close() -- leave project directory - os.cd("-") + os.cd(olddir) end -- cgit v1.3.1