fix: add missing EOL for git key contents
This commit is contained in:
parent
bf47e310f5
commit
19e4ab69d2
@ -6,6 +6,7 @@ const stream = require('stream')
|
|||||||
const Promise = require('bluebird')
|
const Promise = require('bluebird')
|
||||||
const pipeline = Promise.promisify(stream.pipeline)
|
const pipeline = Promise.promisify(stream.pipeline)
|
||||||
const klaw = require('klaw')
|
const klaw = require('klaw')
|
||||||
|
const os = require('os')
|
||||||
|
|
||||||
const pageHelper = require('../../../helpers/page')
|
const pageHelper = require('../../../helpers/page')
|
||||||
const assetHelper = require('../../../helpers/asset')
|
const assetHelper = require('../../../helpers/asset')
|
||||||
@ -67,7 +68,7 @@ module.exports = {
|
|||||||
if (this.config.sshPrivateKeyMode === 'contents') {
|
if (this.config.sshPrivateKeyMode === 'contents') {
|
||||||
try {
|
try {
|
||||||
this.config.sshPrivateKeyPath = path.resolve(WIKI.ROOTPATH, WIKI.config.dataPath, 'secure/git-ssh.pem')
|
this.config.sshPrivateKeyPath = path.resolve(WIKI.ROOTPATH, WIKI.config.dataPath, 'secure/git-ssh.pem')
|
||||||
await fs.outputFile(this.config.sshPrivateKeyPath, this.config.sshPrivateKeyContent, {
|
await fs.outputFile(this.config.sshPrivateKeyPath, this.config.sshPrivateKeyContent + os.EOL, {
|
||||||
encoding: 'utf8',
|
encoding: 'utf8',
|
||||||
mode: 0o600
|
mode: 0o600
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user