Comparing version 5.1.0 to 5.2.0
@@ -6,2 +6,14 @@ # Change Log | ||
# [5.2.0](https://github.com/shipitjs/shipit/tree/master/packages/shipit-deploy/compare/v5.1.0...v5.2.0) (2020-03-07) | ||
### Bug Fixes | ||
* **windows:** cd must run the specified drive letter ([#252](https://github.com/shipitjs/shipit/tree/master/packages/shipit-deploy/issues/252)) ([ab916a9](https://github.com/shipitjs/shipit/tree/master/packages/shipit-deploy/commit/ab916a9)) | ||
* fix remote command wont reject on error, when cwd option is used ([#265](https://github.com/shipitjs/shipit/tree/master/packages/shipit-deploy/issues/265)) ([986aec1](https://github.com/shipitjs/shipit/tree/master/packages/shipit-deploy/commit/986aec1)) | ||
# [5.1.0](https://github.com/shipitjs/shipit/tree/master/packages/shipit-deploy/compare/v5.0.0...v5.1.0) (2019-08-28) | ||
@@ -8,0 +20,0 @@ |
@@ -6,4 +6,10 @@ "use strict"; | ||
var _path = _interopRequireDefault(require("path")); | ||
var _util = require("./util"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const isWin = /^win/.test(process.platform); | ||
function formatCdCommand({ | ||
@@ -16,3 +22,13 @@ folder | ||
const args = ['cd', folder]; | ||
const _path$parse = _path.default.parse(folder), | ||
root = _path$parse.root; | ||
const drive = root.replace(_path.default.sep, ''); | ||
if (isWin && root !== '/') { | ||
args.push(`&& ${drive}`); | ||
} | ||
return (0, _util.joinCommandArgs)(args); | ||
} |
@@ -9,3 +9,3 @@ "use strict"; | ||
function wrapCwd(cwd, command) { | ||
return `cd ${cwd} > /dev/null; ${command}; cd - > /dev/null`; | ||
return `cd ${cwd} > /dev/null && ${command}; cd - > /dev/null`; | ||
} | ||
@@ -12,0 +12,0 @@ |
{ | ||
"name": "ssh-pool", | ||
"version": "5.1.0", | ||
"version": "5.2.0", | ||
"description": "Run remote commands over a pool of server using SSH.", | ||
@@ -28,3 +28,3 @@ "engines": { | ||
}, | ||
"gitHead": "fb39d5c29987c782e0c5c39dcea95e4e86faa4a2" | ||
"gitHead": "199df664cc59a06e4ed5b8e68746ec72feed6fad" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41713
832