From 6d8c3b3c287e6da64c24a1b0e8f28c89b1b4ba07 Mon Sep 17 00:00:00 2001 From: Alex Younger Date: Thu, 8 Dec 2022 11:34:31 -0500 Subject: [PATCH] fix: fix bug when choosing multiple languages This change corrects an error generated from selecting multiple languages, where it would pass an array into the writeFile command. Now all data passed to writeFile is converted into a string. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 9f2cee0..107b0f9 100755 --- a/index.js +++ b/index.js @@ -41,5 +41,5 @@ const { const gitignoreContent = await readFile(`${file}`) // Create the .gitignore file - await writeFile('.gitignore', gitignoreContent) + await writeFile('.gitignore', gitignoreContent.toString()) })();