mirror of
https://github.com/OutlineFoundation/outline-server.git
synced 2026-08-04 14:37:34 +00:00
Remove deprecated buffer call
This commit is contained in:
parent
9d80b6d448
commit
afc7158424
2 changed files with 2 additions and 4 deletions
|
|
@ -15,10 +15,9 @@
|
|||
'use strict';
|
||||
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
const tarballBinary = fs.readFileSync(process.argv[2]);
|
||||
const base64Tarball = new Buffer(tarballBinary).toString('base64');
|
||||
const base64Tarball = tarballBinary.toString('base64');
|
||||
const scriptText = `
|
||||
(base64 --decode | tar --extract --gzip ) <<EOM
|
||||
${base64Tarball}
|
||||
|
|
|
|||
|
|
@ -15,10 +15,9 @@
|
|||
'use strict';
|
||||
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
const tarballBinary = fs.readFileSync(process.argv[2]);
|
||||
const base64Tarball = new Buffer(tarballBinary).toString('base64');
|
||||
const base64Tarball = tarballBinary.toString('base64');
|
||||
const scriptText = `
|
||||
(base64 --decode | tar --extract --gzip ) <<EOM
|
||||
${base64Tarball}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue