diff --git a/package.json b/package.json index aecdf95..7be8812 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@uci-utils/sync", - "version": "0.0.8", + "version": "0.0.9", "description": "module to copy, maintain, and launch hardware modules on other machines", "main": "src/index.js", "bin": { @@ -31,22 +31,22 @@ }, "homepage": "https://github.com/uCOMmandIt/uci-remote-code#readme", "dependencies": { - "@uci-utils/logger": "0.0.13", - "@uci-utils/read-lines": "^0.2.1", + "@uci-utils/logger": "^0.0.15", + "@uci-utils/read-lines": "^0.2.2", "@uci-utils/watcher": "^0.2.4", "aggregation": "^1.2.5", "await-to-js": "^2.1.1", - "conf": "^2.2.0", - "debounce-fn": "^1.0.0", - "esm": "^3.2.7", + "conf": "^5.0.0", + "debounce-fn": "^3.0.1", "fs-read-data": "^1.0.4", - "path-exists": "^3.0.0", - "yargs": "^13.2.1" + "path-exists": "^4.0.0", + "yargs": "^13.3.0" }, "devDependencies": { "chai": "^4.2.0", + "esm": "^3.2.25", "mocha": "^6.x", - "nodemon": "^1.18.10", + "nodemon": "^1.19.1", "ondeath": "^1.0.0" } } diff --git a/src/sync.js b/src/sync.js index 163282c..f44ded7 100644 --- a/src/sync.js +++ b/src/sync.js @@ -211,6 +211,7 @@ class Sync extends merge(Rsync, Emitter) { } let cmd = [] // TODO allow all openssh client options + // check if no leading / on path, then check KEYS_DIR if not then add ~/.ssh if (options.privateKeyPath) cmd.push(`-i ${options.privateKeyPath}`) if (options.port) cmd.push(`-p ${options.port}`) if (options.configFile) cmd.push(`-F ${options.configFile}`) @@ -238,7 +239,7 @@ class Sync extends merge(Rsync, Emitter) { log.info({cmd:cmd, status:status, msg:'sync run'}) if (!errors) this.emit('sync',status) resolve({cmd:cmd, errors:errors, status:status, msg:'sync run'}) - }.bind(this), + }.bind(this), function(data) { status += data.toString() if (opts.cli) process.stdout.write(data.toString())