summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-07-14 14:44:34 -0600
committermo khan <mo@mokhan.ca>2025-07-14 14:44:34 -0600
commit34fa928a67dd25e55e8ee292e0b10635b49b73bd (patch)
treefb3b50d7333f07e6f6a76b0c91f8db6babc52dd7 /bin
parent24d5c2cfbec143a47f1128472389e09e54435f27 (diff)
chore: provide error message when spicedb is not installed
Diffstat (limited to 'bin')
-rwxr-xr-xbin/spicedb7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/spicedb b/bin/spicedb
index acd1ee09..6c43a153 100755
--- a/bin/spicedb
+++ b/bin/spicedb
@@ -1,3 +1,8 @@
#!/bin/sh
-exec spiced $@
+if ! command -v spicedb >/dev/null 2>&1; then
+ echo "Install spicedb: https://authzed.com/docs/spicedb/getting-started/installing-spicedb"
+ exit 1
+fi
+
+exec spicedb "$@"