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:
@@ -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':
|
||||||
|
|||||||
Reference in New Issue
Block a user