From 43e619480568493433af78208e2b3c48843185ef Mon Sep 17 00:00:00 2001 From: Luke Karrys Date: Mon, 22 Apr 2024 19:32:56 -0700 Subject: [PATCH] fix: dont show run script banners in silent --- lib/utils/display.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/utils/display.js b/lib/utils/display.js index 32399a7bf5329..4e0ba81ca956e 100644 --- a/lib/utils/display.js +++ b/lib/utils/display.js @@ -276,6 +276,13 @@ class Display { return } + // HACK: if it looks like the banner and we are silent do not print it. + // There's no other way to do this right now :( + // eslint-disable-next-line max-len + if (this.#silent && args.length === 1 && args[0].startsWith('\n> ') && args[0].endsWith('\n')) { + return + } + this.#writeOutput(level, meta, ...args) })