Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
2ue committed Apr 29, 2024
1 parent 134af7c commit 5cc82af
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions main/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async function run() {
try {
console.log('Start connect: ', localDir1, localDir)
execSync('pwd', { stdio: 'inherit' })
execSync('ls -al', { stdio: 'inherit' })
execSync('ls -al localDir1', { stdio: 'inherit' })
await sftp.connect({
host,
port,
Expand All @@ -54,8 +54,8 @@ async function run() {
// console.log('Start Backup: ', remoteBaseDir, '=>', remoteBakPath)
// await sftp.rcopy(remoteBaseDir, `${remoteBakPath}/backup`)
// }
console.log('Start upload: ', localDir, '=>', remoteBaseDir)
await sftp.uploadDir(localDir, remoteBaseDir, {
console.log('Start upload: ', localDir1, '=>', remoteBaseDir)
await sftp.uploadDir(localDir1, remoteBaseDir, {
filter: (localPath, isDir) => {
core.debug('Upload: ', localPath, isDir)
return true
Expand Down

0 comments on commit 5cc82af

Please sign in to comment.