ssh-deploy icon indicating copy to clipboard operation
ssh-deploy copied to clipboard

SSH_CMD_ARGS are not used in SCRIPT_BEFORE session

Open fuljik opened this issue 1 year ago • 0 comments

SSH_CMD_ARGS are not being respected in the remoteCmdBefore call. It seems that it's only used for the rsync call. If you need it for the connection, you can't use it with the SCRIPT_BEFORE parameter.

https://github.com/easingthemes/ssh-deploy/blob/main/src/index.js

if (scriptBefore) {
    await remoteCmdBefore(scriptBefore, privateKeyPath, scriptBeforeRequired);
  }

fuljik avatar Mar 16 '24 13:03 fuljik