cob-cli 2.43.8 → 2.43.10

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.
@@ -13,7 +13,7 @@ _syncFiles.COPY = "Copy";
13
13
  /* ************************************ */
14
14
  function copyFiles(cmdEnv, from, to, args) {
15
15
  return _syncFiles(_syncFiles.COPY, cmdEnv, from, to, [], args);
16
- }
16
+ }
17
17
  exports.copyFiles = copyFiles;
18
18
 
19
19
  /* ************************************ */
@@ -53,6 +53,7 @@ async function _syncFiles(executionType, cmdEnv, from, to, extraOptions = [], ar
53
53
  "--delete",
54
54
  "--chmod=g+w",
55
55
  "--perms",
56
+ "--no-t",
56
57
  "--filter='merge " + path.resolve(__dirname,"rsyncFilter-pre.txt") + "'",
57
58
  hasRsyncFilter ? "--filter='merge " + cmdEnv.rsyncFilter + "'" : "",
58
59
  "--filter='merge " + path.resolve(__dirname,"rsyncFilter-post.txt") + "'",
@@ -99,11 +100,11 @@ async function _syncFiles(executionType, cmdEnv, from, to, extraOptions = [], ar
99
100
  count = RSYNC_RETRIES;
100
101
  reject(new Error(relevantErrors));
101
102
  }
102
- } else if (count > RSYNC_RETRIES) {
103
+ } else if (( count + 1 ) >= RSYNC_RETRIES) {
103
104
  reject(new Error(err));;
104
105
  } else {
105
106
  if (args.verbose > 1)
106
- console.log("warning".yellow + " rsync '" + (product).blue + "': attempt " + (count + 1) + " failed with code " + err.exitCode);
107
+ console.log("warning".yellow + " rsync '" + (product).blue + "': attempt " + (count + 1) + " of " + RSYNC_RETRIES + " failed with code " + err.exitCode);
107
108
  }
108
109
  });
109
110
  count++;
@@ -1,5 +1,6 @@
1
1
  const execa = require('execa');
2
2
  const fs = require('fs-extra');
3
+ const path = require('path');
3
4
  const { resolveCobPath } = require("./common_syncFiles");
4
5
 
5
6
  const DEBUG = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cob-cli",
3
- "version": "2.43.8",
3
+ "version": "2.43.10",
4
4
  "description": "A command line utility to help Cult of Bits partners develop with higher speed and reusing common code and best practices.",
5
5
  "preferGlobal": true,
6
6
  "repository": {