summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-07-14 14:49:42 -0600
committermo khan <mo@mokhan.ca>2025-07-14 14:49:42 -0600
commitdf516355bb8f2b772b1be950f728f99faea61db1 (patch)
tree4815ffe736e690b17f6d6b25133067656c2cd917
parent0cdde3e8b16d8a9b03ac8e5ba1214508fc8931b4 (diff)
chore: check if envoy is installed and pass raw args to program
-rwxr-xr-xbin/envoy5
-rwxr-xr-xbin/spicedb2
2 files changed, 6 insertions, 1 deletions
diff --git a/bin/envoy b/bin/envoy
index ede6290c..5f2ea9ca 100755
--- a/bin/envoy
+++ b/bin/envoy
@@ -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 $@