Adding a warning for the icon-gen to not accidentally pollute the

working directory
This commit is contained in:
Chris McKenzie
2023-08-21 19:50:06 -07:00
parent 2862cb021f
commit a5219a6e93

View File

@@ -2,6 +2,12 @@
const TextToSVG = require('text-to-svg');
const textToSVG = TextToSVG.loadSync('fonts/Px437_IBM_EGA8.otf');
const fs = require('fs');
if(!process.argv[2]) {
console.error("You need to specify a path to generate the svg files in as your argument");
process.exit(-1);
}
const path = (process.argv[2] || '.').replace(/\/$/, '');
var list = ["// This file is auto-generated from icon-gen in the root directory"];