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 +1 -1
- package/src/build-actions.js +6 -4
package/package.json
CHANGED
package/src/build-actions.js
CHANGED
|
@@ -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
|
-
|
|
100
|
-
|
|
101
|
-
|
|
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
|
}
|