From df516355bb8f2b772b1be950f728f99faea61db1 Mon Sep 17 00:00:00 2001 From: mo khan Date: Mon, 14 Jul 2025 14:49:42 -0600 Subject: chore: check if envoy is installed and pass raw args to program --- bin/envoy | 5 +++++ bin/spicedb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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 $@ -- cgit v1.2.3