diff options
| author | mo khan <mo@mokhan.ca> | 2025-07-14 14:49:42 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-07-14 14:49:42 -0600 |
| commit | df516355bb8f2b772b1be950f728f99faea61db1 (patch) | |
| tree | 4815ffe736e690b17f6d6b25133067656c2cd917 | |
| parent | 0cdde3e8b16d8a9b03ac8e5ba1214508fc8931b4 (diff) | |
chore: check if envoy is installed and pass raw args to program
| -rwxr-xr-x | bin/envoy | 5 | ||||
| -rwxr-xr-x | bin/spicedb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ #!/bin/sh +if ! command -v envoy >/dev/null 2>&1; then + echo "Install envoy: https://www.envoyproxy.io/docs/envoy/latest/start/install" + exit 1 +fi + exec envoy $@ diff --git a/bin/spicedb b/bin/spicedb index 6c43a153..5d4cf0bb 100755 --- a/bin/spicedb +++ b/bin/spicedb @@ -5,4 +5,4 @@ if ! command -v spicedb >/dev/null 2>&1; then exit 1 fi -exec spicedb "$@" +exec spicedb $@ |
