Skip to content

Commit 59827af

Browse files
committed
fix: easingthemes#113 limit ssh script output
1 parent adb1a2c commit 59827af

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/remoteCmd.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ const remoteCmd = async (content, privateKeyPath, isRequired, label) => new Prom
2424
console.warn(`${message} \n`, data, stderr);
2525
handleError(message, isRequired, reject);
2626
} else {
27-
console.log('✅ [CMD] Remote script executed. \n', data, stderr);
28-
resolve(data);
27+
const limited = data.substring(0, 10000);
28+
console.log('✅ [CMD] Remote script executed. \n', limited, stderr);
29+
resolve(limited);
2930
}
3031
}
3132
);

0 commit comments

Comments
 (0)