Corrected existsSync paths.
This commit is contained in:
parent
c2012bf5a0
commit
7021d4e1ab
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user