cloudron 5.3.3 → 5.3.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudron",
3
- "version": "5.3.3",
3
+ "version": "5.3.4",
4
4
  "license": "MIT",
5
5
  "description": "Cloudron Commandline Tool",
6
6
  "main": "main.js",
@@ -94,11 +94,13 @@ function followBuildLog(buildId, raw, callback) {
94
94
  var data = safe.JSON.parse(e.data);
95
95
  if (!data) return; // this is a bug in docker or our build server
96
96
 
97
- if (data.status) { // push log
97
+ if (data.status) { // image push log
98
98
  if (data.id && data.id === prevId) {
99
- // the code below does not work os x if the line wraps, maybe we should clip the text to window size?
100
- process.stdout.clearLine();
101
- process.stdout.cursorTo(0);
99
+ if (process.stdout.isTTY) {
100
+ // the code below does not work os x if the line wraps, maybe we should clip the text to window size?
101
+ process.stdout.clearLine();
102
+ process.stdout.cursorTo(0);
103
+ }
102
104
  } else if (prevWasStatus) {
103
105
  process.stdout.write('\n');
104
106
  }