ssh-client-wrapper 2.9.1 → 2.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docker-compose.yml +0 -1
- package/lib/rsyncExec.js +2 -0
- package/package.json +1 -1
- package/run_test_all.sh +5 -5
package/docker-compose.yml
CHANGED
package/lib/rsyncExec.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const path = require("path");
|
|
3
|
+
const fs = require("fs/promises");
|
|
3
4
|
const debug = require("debug")("sshClientWrapper:debug:rsyncExec");
|
|
4
5
|
const debugVerbose = require("debug")("sshClientWrapper:verbose:rsyncExec");
|
|
5
6
|
const { glob } = require("glob");
|
|
@@ -116,6 +117,7 @@ async function recv (hostInfo, argSrc, dst, rsyncOpt, timeout) {
|
|
|
116
117
|
if (await isNewRsync(hostInfo)) {
|
|
117
118
|
args.unshift("--old-args");
|
|
118
119
|
}
|
|
120
|
+
await fs.mkdir(dst, { recursive: true });
|
|
119
121
|
|
|
120
122
|
debug(`recv ${src} to ${dst}`);
|
|
121
123
|
debugVerbose(`recv: ${rsyncCmd} ${args.join(" ")}`);
|
package/package.json
CHANGED
package/run_test_all.sh
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/bin/bash
|
|
2
2
|
|
|
3
3
|
function cleanup(){
|
|
4
|
-
docker
|
|
4
|
+
docker compose rm --stop --force testbed
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
trap cleanup EXIT
|
|
8
8
|
set -e -o pipefail
|
|
9
9
|
|
|
10
|
-
docker
|
|
10
|
+
docker compose up testbed -d
|
|
11
11
|
export TEST_HOST=localhost
|
|
12
12
|
export TEST_USER=testuser
|
|
13
13
|
export TEST_PW=passw0rd
|
|
@@ -17,11 +17,11 @@ ssh-keygen -R '[localhost]:4100'
|
|
|
17
17
|
npm run test
|
|
18
18
|
echo local test success
|
|
19
19
|
|
|
20
|
-
docker
|
|
20
|
+
docker compose run --build --rm tester
|
|
21
21
|
echo test on latest ubuntu success
|
|
22
22
|
|
|
23
|
-
docker
|
|
23
|
+
docker compose run --build --rm tester-bullseye
|
|
24
24
|
echo test on bullseye success
|
|
25
25
|
|
|
26
|
-
docker
|
|
26
|
+
docker compose run --build --rm tester-buster
|
|
27
27
|
echo test on buster success
|