diff options
Diffstat (limited to 'sql/mac/deps/extract.js')
-rwxr-xr-x | sql/mac/deps/extract.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sql/mac/deps/extract.js b/sql/mac/deps/extract.js new file mode 100755 index 0000000..46aed47 --- /dev/null +++ b/sql/mac/deps/extract.js @@ -0,0 +1,10 @@ +const tar = require("tar"); +const path = require("path"); +const tarball = path.resolve(process.argv[2]); +const dirname = path.resolve(process.argv[3]); + +tar.extract({ + sync: true, + file: tarball, + cwd: dirname, +}); |