Skip to content

Commit

Permalink
Merge pull request #57 from lambda-0x/check-jq
Browse files Browse the repository at this point in the history
fix: check jq is installed
  • Loading branch information
glihm authored May 13, 2024
2 parents 8cabdf3 + 847ce3a commit debfbf4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

The official Dojo Starter guide, the quickest and most streamlined way to get your Dojo Autonomous World up and running. This guide will assist you with the initial setup, from cloning the repository to deploying your world.

Read the full tutorial [here](https://book.dojoengine.org/cairo/hello-dojo)
Read the full tutorial [here](https://book.dojoengine.org/tutorial/dojo-starter#hello-dojo)

---

Expand Down
13 changes: 13 additions & 0 deletions scripts/default_auth.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@
set -euo pipefail
pushd $(dirname "$0")/..

need_cmd() {
if ! check_cmd "$1"; then
printf "need '$1' (command not found)"
exit 1
fi
}

check_cmd() {
command -v "$1" &>/dev/null
}

need_cmd jq

export RPC_URL="http://localhost:5050"

export WORLD_ADDRESS=$(cat ./manifests/dev/manifest.json | jq -r '.world.address')
Expand Down

0 comments on commit debfbf4

Please sign in to comment.