1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-17 16:53:13 +00:00

Fixed import/export bug caused by previous change to Get/GetBuffer

This commit is contained in:
Bryan Roe
2019-01-18 22:45:51 -08:00
parent f36bd6f8e0
commit a627ae6db0

View File

@@ -97,12 +97,12 @@ if (process.argv.length > 1)
if (process.argv[2] == 'CoreModule') if (process.argv[2] == 'CoreModule')
{ {
db.target = require('fs').createWriteStream('CoreModule.js', { flags: 'wb' }); db.target = require('fs').createWriteStream('CoreModule.js', { flags: 'wb' });
db.target.write(db.Get(process.argv[2]).slice(4), function () { console.log('finished exporting'); process.exit(); }); db.target.write(db.GetBuffer(process.argv[2]).slice(4), function () { console.log('finished exporting'); process.exit(); });
} }
else else
{ {
db.target = require('fs').createWriteStream(process.argv[2], 'wb'); db.target = require('fs').createWriteStream(process.argv[2], 'wb');
db.target.write(db.Get(process.argv[2]), function () { console.log('finished exporting'); process.exit(); }); db.target.write(db.GetBuffer(process.argv[2]), function () { console.log('finished exporting'); process.exit(); });
} }
break; break;
case 'import': case 'import':