Skip to content

Commit

Permalink
fix: easingthemes#113 limit ssh script output
Browse files Browse the repository at this point in the history
  • Loading branch information
easingthemes committed Feb 21, 2023
1 parent adb1a2c commit 59827af
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/remoteCmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ const remoteCmd = async (content, privateKeyPath, isRequired, label) => new Prom
console.warn(`${message} \n`, data, stderr);
handleError(message, isRequired, reject);
} else {
console.log('✅ [CMD] Remote script executed. \n', data, stderr);
resolve(data);
const limited = data.substring(0, 10000);
console.log('✅ [CMD] Remote script executed. \n', limited, stderr);
resolve(limited);
}
}
);
Expand Down

0 comments on commit 59827af

Please sign in to comment.