summaryrefslogtreecommitdiff
path: root/bin/spicedb
diff options
context:
space:
mode:
Diffstat (limited to 'bin/spicedb')
-rwxr-xr-xbin/spicedb5
1 files changed, 5 insertions, 0 deletions
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