diff --git a/scripts/games/app.js b/scripts/games/app.js index ca634b3..3f97cfa 100644 --- a/scripts/games/app.js +++ b/scripts/games/app.js @@ -68,13 +68,13 @@ try { // Copy the boxart for the game. let boxartPath = `${inputDirectoryGame}/${game}/boxart.png`; - if (fs.existsSync(path)) { + if (fs.existsSync(boxartPath)) { fsextra.copySync(boxartPath, `${outputDirectoryBoxart}/${game}.png`); } - + // Copy the icon for the game. let iconPath = `${inputDirectoryGame}/${game}/icon.png`; - if (fs.existsSync(path)) { + if (fs.existsSync(iconPath)) { fsextra.copySync(iconPath, `${outputDirectoryIcons}/${game}.png`); } // Create the markdown file to be displayed in Hugo.