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

Fix hooks with string command. #23

Closed jackc closed 4 years ago

jackc commented 4 years ago

async.eachSeries runs commands. If commands is a string it tries to run each character as a command. middlewareCallbackExecute already mapped a string result of a function to [string]. This change moves that transformation so it appies to the result of a function as well as a raw string.