diff --git a/scripts/core.mjs b/scripts/core.mjs index 24a5555b..aa42afa7 100644 --- a/scripts/core.mjs +++ b/scripts/core.mjs @@ -233,7 +233,9 @@ export const checkGameEmbed = async embed => { return [null, 'web-request-failed']; } - return [response.statusCode === 200, null]; + if (response.statusCode === 200) { + return [true, null]; + } } return [false, 'invalid-embed']; diff --git a/scripts/lint.mjs b/scripts/lint.mjs index 798df3cb..afccba41 100755 --- a/scripts/lint.mjs +++ b/scripts/lint.mjs @@ -33,6 +33,8 @@ const removeRootDir = path => { return path.replace(CORE_PATHS.rootDir + '/', ''); }; +let hasBeenWarned = false; + /** * Logs a lint violation. * @param {'warning' | 'error'} type The type of violation. @@ -42,6 +44,7 @@ const removeRootDir = path => { * @param {string} message The violation message. */ const logLintViolation = (type = 'error', file, line, column, message) => { + hasBeenWarned = true; if (isGithubAnotationsMode) { const args = []; file !== null && args.push(`file=${removeRootDir(file)}`); @@ -350,7 +353,7 @@ const main = async () => { await Promise.all(markdownFiles.map(file => lintMarkdownFile(file))); - return 0; + return hasBeenWarned ? 1 : 0; }; if (process.argv[1] === new URL(import.meta.url).pathname) diff --git a/src/game-support/among-us.md b/src/game-support/among-us.md index cbe75585..bd9b7601 100644 --- a/src/game-support/among-us.md +++ b/src/game-support/among-us.md @@ -6,5 +6,5 @@ a > [!NOTE] > This game has an iPad Mac port through the App Store. -{{#template ../templates/steam.md id=945360}} +{{#template ../templates/steam.md id=9453609234987329847}} a \ No newline at end of file