diff options
| author | mo khan <mo@mokhan.ca> | 2025-07-14 14:44:34 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-07-14 14:44:34 -0600 |
| commit | 34fa928a67dd25e55e8ee292e0b10635b49b73bd (patch) | |
| tree | fb3b50d7333f07e6f6a76b0c91f8db6babc52dd7 | |
| parent | 24d5c2cfbec143a47f1128472389e09e54435f27 (diff) | |
chore: provide error message when spicedb is not installed
| -rwxr-xr-x | bin/spicedb | 7 |
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 "$@" |
