diff options
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/postgres | 5 | ||||
| -rwxr-xr-x | bin/spicedb | 5 | ||||
| -rwxr-xr-x | bin/tool | 3 | ||||
| -rwxr-xr-x | bin/zed | 12 |
4 files changed, 24 insertions, 1 deletions
diff --git a/bin/postgres b/bin/postgres index 66c0ab0..7e1bb7c 100755 --- a/bin/postgres +++ b/bin/postgres @@ -1,5 +1,10 @@ #!/bin/sh +set -e +[ -n "$DEBUG" ] && set -x + +cd "$(dirname "$0")/.." + if ! command -v postgres >/dev/null 2>&1; then echo "Install postgres via mise: mise install postgres" exit 1 diff --git a/bin/spicedb b/bin/spicedb index 5d4cf0b..726cc9f 100755 --- a/bin/spicedb +++ b/bin/spicedb @@ -1,5 +1,10 @@ #!/bin/sh +set -e +[ -n "$DEBUG" ] && set -x + +cd "$(dirname "$0")/.." + if ! command -v spicedb >/dev/null 2>&1; then echo "Install spicedb: https://authzed.com/docs/spicedb/getting-started/installing-spicedb" exit 1 @@ -1,6 +1,9 @@ #!/bin/sh set -e +[ -n "$DEBUG" ] && set -x + +cd "$(dirname "$0")/.." tool_bin=$(go tool -n "$1") @@ -1,3 +1,13 @@ #!/bin/sh -go tool godotenv -f .env.local,.env go tool zed --insecure $@ +set -e +[ -n "$DEBUG" ] && set -x + +cd "$(dirname "$0")/.." + +if ! command -v zed >/dev/null 2>&1; then + echo "Install zed: https://github.com/authzed/zed" + exit 1 +fi + +./bin/tool godotenv -f .env.local,.env go tool zed --insecure $@ |
