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

Script breaks when command in onAfterDeploy send stdout message #26

Open a-tonchev opened 3 years ago

a-tonchev commented 3 years ago

I don't know if this is expected behavior but the whole script breaks when standard message (not error or warning) comes from the command inside onAfterDeploy. My solution right now is to put a 2>/dev/null || true after yeach command, so that the process don't break without reason.