Merge pull request #3 from JZLeung/patch-1

fix: 修复 ARGS 为空时导致 rsync 执行错误问题。
This commit is contained in:
Dragan Filipović 2020-03-24 00:04:15 +01:00 committed by GitHub
commit c28aa7215e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,7 +140,7 @@ const run = () => {
sshDeploy.init({
src: GITHUB_WORKSPACE + '/' + SOURCE || '',
dest: TARGET || '/home/' + REMOTE_USER + '/',
args: [ARGS] || ['-rltgoDzvO'],
args: ARGS ? [ARGS] : ['-rltgoDzvO'],
host: REMOTE_HOST,
port: REMOTE_PORT || '22',
username: REMOTE_USER,