mirror of
https://github.com/easingthemes/ssh-deploy
synced 2025-01-15 12:20:58 +00:00
fix: 修复 ARGS 为空时导致 rsync 执行错误问题。
由于 ARGS 非必填,当其为空时,报错:
⚠️ An error happened:(. Cannot read property 'match' of undefined TypeError: Cannot read property 'match' of undefined
This commit is contained in:
parent
d86da2b0b7
commit
caaa95b651
@ -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