diff --git a/src/services/utils.js b/src/services/utils.js index 986b138..3c6b297 100644 --- a/src/services/utils.js +++ b/src/services/utils.js @@ -23,7 +23,7 @@ export const TEMP_FOLDER_NAME = ".api-mock-runner"; * @returns {Promise} */ export async function addToGitignore(textToAppend) { - if (!checkStringInFile(textToAppend, `${process.cwd()}/.gitignore`)) { + if (await !checkStringInFile(textToAppend, `${process.cwd()}/.gitignore`)) { fs.appendFile(`${process.cwd()}/.gitignore`, `\n${textToAppend}`, (err) => { if (err) { console.error(err);