diff options
Diffstat (limited to 'xmake/tools/ar.lua')
| -rw-r--r-- | xmake/tools/ar.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/tools/ar.lua b/xmake/tools/ar.lua index df9325763..6445c332b 100644 --- a/xmake/tools/ar.lua +++ b/xmake/tools/ar.lua @@ -69,7 +69,7 @@ function extract(libraryfile, objectdir) libraryfile = path.absolute(libraryfile) -- enter the object directory - os.cd(objectdir) + local olddir = os.cd(objectdir) -- extract it os.run("%s -x %s", _g.shellname, libraryfile) @@ -85,7 +85,7 @@ function extract(libraryfile, objectdir) end -- leave the object directory - os.cd("-") + os.cd(olddir) end -- run command |
