diff --git a/index.js b/index.js index 86955fc..df0f6cd 100644 --- a/index.js +++ b/index.js @@ -103,7 +103,7 @@ function checkMetar() { items.push(newMetar(metars[i])); } - let outputPath = METAR_SERVICE + "/" + icao; + let outputPath = path.join(METAR_SERVICE, icao); writeFeed(generateFeed(METAR_SERVICE, icao, items, outputPath), outputPath); } });