mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-24 09:04:02 +02:00
9 lines
304 B
Bash
Executable File
9 lines
304 B
Bash
Executable File
#!/bin/bash
|
|
dir=$(dirname $0)
|
|
presets=$(find $dir/presets -name "*.json" -exec cat {} \; -exec echo , \;)
|
|
echo [${presets%?}] > $dir/presets.json
|
|
node -e "
|
|
var fs = require('fs');
|
|
fs.writeFileSync('$dir/presets.json', JSON.stringify(JSON.parse(fs.readFileSync('$dir/presets.json', 'utf8')), null, 4));
|
|
"
|