summaryrefslogtreecommitdiff
path: root/xmake/actions/package/main.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-07-04 14:33:50 +0800
committerruki <[email protected]>2016-07-04 14:33:50 +0800
commit1ec6011956e78dedd7eea87f484b0a3c56cfef27 (patch)
treec762bc26e0483b9082ff70eed890b7bef468f98d /xmake/actions/package/main.lua
parent2acc00d97e75abee7e1871f699c69136d37c4e49 (diff)
fix cd bug
Diffstat (limited to 'xmake/actions/package/main.lua')
-rwxr-xr-xxmake/actions/package/main.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/actions/package/main.lua b/xmake/actions/package/main.lua
index 377d31eea..453725e13 100755
--- a/xmake/actions/package/main.lua
+++ b/xmake/actions/package/main.lua
@@ -129,7 +129,7 @@ end
function _package(target)
-- enter project directory
- os.cd(project.directory())
+ local olddir = os.cd(project.directory())
-- the target scripts
local scripts =
@@ -148,7 +148,7 @@ function _package(target)
end
-- leave project directory
- os.cd("-")
+ os.cd(olddir)
end
-- package the given target and deps