la-haute-societe / ssh-deploy-release

Deploy releases over SSH with rsync, archive ZIP / TAR, symlinks, SCP ...
https://www.npmjs.com/package/ssh-deploy-release
MIT License
36 stars 10 forks source link

Error when privateKeyFile is defined but passphrase isn't #17

Closed nstCactus closed 5 years ago

nstCactus commented 5 years ago

Present in 3.0.0-beta.7.

node_modules/any-shell-escape/shell-escape.js:31
    stringOrArray.forEach(function(member) {
                  ^

TypeError: Cannot read property 'forEach' of undefined
    at module.exports (node_modules/any-shell-escape/shell-escape.js:31:19)
    at module.exports.synchronize (node_modules/ssh-deploy-release/dist/Remote.js:168:35)
    at module.exports.uploadReleaseTask (node_modules/ssh-deploy-release/dist/ssh-deploy-release.js:233:17)
    at eachfn (node_modules/ssh-deploy-release/node_modules/async/dist/async.js:2952:28)
    at replenish (node_modules/ssh-deploy-release/node_modules/async/dist/async.js:444:21)
    at iterateeCallback (node_modules/ssh-deploy-release/node_modules/async/dist/async.js:428:21)
    at node_modules/ssh-deploy-release/node_modules/async/dist/async.js:325:20
    at result (node_modules/ssh-deploy-release/node_modules/async/dist/async.js:2957:17)
    at remote.createFolder (node_modules/ssh-deploy-release/dist/ssh-deploy-release.js:191:7)
    at wrapper (node_modules/ssh-deploy-release/node_modules/async/dist/async.js:272:20)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.