summaryrefslogtreecommitdiff
path: root/forgebot.sh
diff options
context:
space:
mode:
Diffstat (limited to 'forgebot.sh')
-rwxr-xr-xforgebot.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/forgebot.sh b/forgebot.sh
index 98a246a..c0e3cac 100755
--- a/forgebot.sh
+++ b/forgebot.sh
@@ -7,9 +7,11 @@
# curl
# find
+rm -fr "${DATA_DIR:-.}/repo"
+git clone http://github.com/notenoughupdates/notenoughupdates-repo "${DATA_DIR:-.}/"repo --depth=1
function get_duration() {
- jq '.recipes[] | select(.type ="forge") | .duration * 1000' < repo/items/$1.json
+ jq '.recipes[] | select(.type ="forge") | .duration * 1000' < "${DATA_DIR:-.}"/repo/items/$1.json
}