summaryrefslogtreecommitdiff
path: root/themes/src/tools
diff options
context:
space:
mode:
Diffstat (limited to 'themes/src/tools')
-rw-r--r--themes/src/tools/shader.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/themes/src/tools/shader.js b/themes/src/tools/shader.js
index 54ba6e0..10889db 100644
--- a/themes/src/tools/shader.js
+++ b/themes/src/tools/shader.js
@@ -8,6 +8,10 @@ const fs = require('fs');
const directory = path.join(__dirname, "..", "_shaders");
const out_directory = path.join(__dirname, "..", "shaders");
+if (!fs.existsSync(out_directory)){
+ fs.mkdirSync(out_directory);
+}
+
const files = fs.readdirSync(directory);
files.forEach(file => {
const filePath = path.join(directory, file);