Corrected existsSync paths.
This commit is contained in:
		| @@ -68,13 +68,13 @@ try { | |||||||
|  |  | ||||||
|     // Copy the boxart for the game. |     // Copy the boxart for the game. | ||||||
|     let boxartPath = `${inputDirectoryGame}/${game}/boxart.png`; |     let boxartPath = `${inputDirectoryGame}/${game}/boxart.png`; | ||||||
|     if (fs.existsSync(path)) { |     if (fs.existsSync(boxartPath)) { | ||||||
|       fsextra.copySync(boxartPath, `${outputDirectoryBoxart}/${game}.png`); |       fsextra.copySync(boxartPath, `${outputDirectoryBoxart}/${game}.png`); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     // Copy the icon for the game. |     // Copy the icon for the game. | ||||||
|     let iconPath = `${inputDirectoryGame}/${game}/icon.png`; |     let iconPath = `${inputDirectoryGame}/${game}/icon.png`; | ||||||
|     if (fs.existsSync(path)) { |     if (fs.existsSync(iconPath)) { | ||||||
|       fsextra.copySync(iconPath, `${outputDirectoryIcons}/${game}.png`); |       fsextra.copySync(iconPath, `${outputDirectoryIcons}/${game}.png`); | ||||||
|     } |     } | ||||||
|     // Create the markdown file to be displayed in Hugo. |     // Create the markdown file to be displayed in Hugo. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user