mirror of
https://github.com/kristopolous/BOOTSTRA.386.git
synced 2026-02-04 05:35:11 +00:00
Adding a warning for the icon-gen to not accidentally pollute the
working directory
This commit is contained in:
@@ -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"];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user