update generate json, remove last comma

This commit is contained in:
Mayccoll 2020-12-17 20:27:28 -05:00
parent db74cdd14e
commit 15aef9ab84
2 changed files with 5 additions and 4360 deletions

File diff suppressed because one or more lines are too long

View File

@ -60,6 +60,10 @@ ls -1 $SCRIPT_PATH/../.tmp/*.sh | while read a; do createColors "$a" >> $SCRIPT_
echo ' ]' >> $SCRIPT_PATH/../gh-pages/data/themes.json
echo '}' >> $SCRIPT_PATH/../gh-pages/data/themes.json
cat $SCRIPT_PATH/../gh-pages/data/themes.json | tr -d " \t\n\r" > $SCRIPT_PATH/../gh-pages/data/themes.json.tmp
sed 's/},]}/}]}/g' $SCRIPT_PATH/../gh-pages/data/themes.json.tmp > $SCRIPT_PATH/../gh-pages/data/themes.json
rm $SCRIPT_PATH/../gh-pages/data/themes.json.tmp
echo ""
echo "File location:"
echo -e "${GREEN} gh-pages/data/themes.json"