[fix] Do not trim `\n` from files read in.
parent
ff0f174520
commit
86bfd7c5bc
|
@ -43,7 +43,7 @@ var File = exports.File = function (options) {
|
||||||
|
|
||||||
this.secure.alg = this.secure.alg || 'aes-256-ctr';
|
this.secure.alg = this.secure.alg || 'aes-256-ctr';
|
||||||
if (this.secure.secretPath) {
|
if (this.secure.secretPath) {
|
||||||
this.secure.secret = fs.readFileSync(this.secure.secretPath, 'utf8').trim();
|
this.secure.secret = fs.readFileSync(this.secure.secretPath, 'utf8');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this.secure.secret) {
|
if (!this.secure.secret) {
|
||||||
|
|
Loading…
Reference in New Issue