From 45a67dcce67e1c072df916f3bc04725409b5b004 Mon Sep 17 00:00:00 2001 From: Histausse Date: Sat, 10 Jun 2023 19:21:42 +0200 Subject: [PATCH] fix --- .gitignore | 1 + json_to_nedb.sh | 5 +++++ module.json | 2 +- packs/{dwgl-beguiler-moves.db => dwgl-beguiler-moves.json} | 0 packs/{hbw-classe.json => dwgl-classe.json} | 0 5 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100755 json_to_nedb.sh rename packs/{dwgl-beguiler-moves.db => dwgl-beguiler-moves.json} (100%) rename packs/{hbw-classe.json => dwgl-classe.json} (100%) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..98e6ef6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.db diff --git a/json_to_nedb.sh b/json_to_nedb.sh new file mode 100755 index 0000000..3aed5f0 --- /dev/null +++ b/json_to_nedb.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +for x in packs/*.json; do + cat "$x" | jq -c > "${x%.json}.db" +done diff --git a/module.json b/module.json index 3898f15..aebe618 100644 --- a/module.json +++ b/module.json @@ -26,7 +26,7 @@ "label": "DW Beguiler Classe", "type": "Item", "name": "dwgl-classe", - "path": "packs/hbw-classe.db", + "path": "packs/dwgl-classe.db", "system": "dungeonworld", "package": "world", "entity": "Item", diff --git a/packs/dwgl-beguiler-moves.db b/packs/dwgl-beguiler-moves.json similarity index 100% rename from packs/dwgl-beguiler-moves.db rename to packs/dwgl-beguiler-moves.json diff --git a/packs/hbw-classe.json b/packs/dwgl-classe.json similarity index 100% rename from packs/hbw-classe.json rename to packs/dwgl-classe.json