From 47f34419eb10848fc247d58dccf0837dc7a72fe6 Mon Sep 17 00:00:00 2001 From: hoonoh Date: Tue, 15 Oct 2019 19:07:33 +0900 Subject: [PATCH] fix: add missing quite handling for stdout --- src/lib.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.ts b/src/lib.ts index 43f22bc0..2363d1fd 100644 --- a/src/lib.ts +++ b/src/lib.ts @@ -131,10 +131,10 @@ export const getGlobalSpotPrices = async ( secretAccessKey, }); rtn = [...rtn, ...regionsPrices]; - process.stdout.write('.'); + if (!quiet) process.stdout.write('.'); }), ); - process.stdout.write('\n'); + if (!quiet) process.stdout.write('\n'); rtn = rtn.reduce( (list, cur) => {