diff options
| author | ruki <[email protected]> | 2016-07-04 14:33:50 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-07-04 14:33:50 +0800 |
| commit | 1ec6011956e78dedd7eea87f484b0a3c56cfef27 (patch) | |
| tree | c762bc26e0483b9082ff70eed890b7bef468f98d /xmake/actions/build/main.lua | |
| parent | 2acc00d97e75abee7e1871f699c69136d37c4e49 (diff) | |
fix cd bug
Diffstat (limited to 'xmake/actions/build/main.lua')
| -rwxr-xr-x | xmake/actions/build/main.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/actions/build/main.lua b/xmake/actions/build/main.lua index 948bf400f..d09454be6 100755 --- a/xmake/actions/build/main.lua +++ b/xmake/actions/build/main.lua @@ -56,7 +56,7 @@ function main() cache.flush() -- enter project directory - os.cd(project.directory()) + local olddir = os.cd(project.directory()) -- build it try @@ -83,7 +83,7 @@ function main() } -- leave project directory - os.cd("-") + os.cd(olddir) -- trace print("build ok!") |
