mirror of
https://github.com/easingthemes/ssh-deploy.git
synced 2024-11-12 05:38:05 +00:00
Merge pull request #3 from JZLeung/patch-1
fix: 修复 ARGS 为空时导致 rsync 执行错误问题。
This commit is contained in:
commit
c28aa7215e
@ -140,7 +140,7 @@ const run = () => {
|
|||||||
sshDeploy.init({
|
sshDeploy.init({
|
||||||
src: GITHUB_WORKSPACE + '/' + SOURCE || '',
|
src: GITHUB_WORKSPACE + '/' + SOURCE || '',
|
||||||
dest: TARGET || '/home/' + REMOTE_USER + '/',
|
dest: TARGET || '/home/' + REMOTE_USER + '/',
|
||||||
args: [ARGS] || ['-rltgoDzvO'],
|
args: ARGS ? [ARGS] : ['-rltgoDzvO'],
|
||||||
host: REMOTE_HOST,
|
host: REMOTE_HOST,
|
||||||
port: REMOTE_PORT || '22',
|
port: REMOTE_PORT || '22',
|
||||||
username: REMOTE_USER,
|
username: REMOTE_USER,
|
||||||
|
Loading…
Reference in New Issue
Block a user