azure-pipelines-task-lib 5.2.5 → 5.2.7

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/task.js +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "azure-pipelines-task-lib",
3
- "version": "5.2.5",
3
+ "version": "5.2.7",
4
4
  "description": "Azure Pipelines Task SDK",
5
5
  "main": "./task.js",
6
6
  "typings": "./task.d.ts",
@@ -28,7 +28,7 @@
28
28
  "homepage": "https://github.com/Microsoft/azure-pipelines-task-lib",
29
29
  "dependencies": {
30
30
  "adm-zip": "^0.5.10",
31
- "minimatch": "3.0.5",
31
+ "minimatch": "^3.1.5",
32
32
  "nodejs-file-downloader": "^4.11.1",
33
33
  "q": "^1.5.1",
34
34
  "semver": "^5.7.2",
package/task.js CHANGED
@@ -1522,7 +1522,7 @@ function rmRF(inputPath) {
1522
1522
  var lstats = fs.lstatSync(inputPath);
1523
1523
  if (lstats.isDirectory() && !lstats.isSymbolicLink()) {
1524
1524
  (0, exports.debug)('removing directory ' + inputPath);
1525
- childProcess.execFileSync("cmd.exe", ["/c", "rd", "/s", "/q", inputPath]);
1525
+ childProcess.execFileSync("cmd.exe", ["/c", "rd", "/s", "/q", im._normalizeSeparators(inputPath)]);
1526
1526
  }
1527
1527
  else if (lstats.isSymbolicLink()) {
1528
1528
  (0, exports.debug)('removing symbolic link ' + inputPath);
@@ -1530,7 +1530,7 @@ function rmRF(inputPath) {
1530
1530
  if (fs.existsSync(realPath)) {
1531
1531
  var stats_4 = fs.statSync(realPath);
1532
1532
  if (stats_4.isDirectory()) {
1533
- childProcess.execFileSync("cmd.exe", ["/c", "rd", "/s", "/q", realPath]);
1533
+ childProcess.execFileSync("cmd.exe", ["/c", "rd", "/s", "/q", im._normalizeSeparators(realPath)]);
1534
1534
  fs.unlinkSync(inputPath);
1535
1535
  }
1536
1536
  else {
@@ -1544,7 +1544,7 @@ function rmRF(inputPath) {
1544
1544
  }
1545
1545
  else {
1546
1546
  (0, exports.debug)('removing file ' + inputPath);
1547
- childProcess.execFileSync("cmd.exe", ["/c", "del", "/f", "/a", inputPath]);
1547
+ childProcess.execFileSync("cmd.exe", ["/c", "del", "/f", "/a", im._normalizeSeparators(inputPath)]);
1548
1548
  }
1549
1549
  }
1550
1550
  catch (err) {