From 7021d4e1abd94bc6e6adb8fe9a89604f9f666d74 Mon Sep 17 00:00:00 2001 From: chris062689 Date: Sat, 3 Jun 2017 00:49:49 -0400 Subject: [PATCH] Corrected existsSync paths. --- scripts/games/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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.