From efe332f6a4847ff2fc5097af921a7371d998cf2e Mon Sep 17 00:00:00 2001 From: Daniel Jones Date: Thu, 23 Apr 2026 14:44:03 -0400 Subject: [PATCH 1/2] Pass through arguments to json-env-helper command --- dev-shell.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dev-shell.sh b/dev-shell.sh index 56ea2b8..1451e7e 100755 --- a/dev-shell.sh +++ b/dev-shell.sh @@ -42,6 +42,10 @@ print_fancy "*** Dev shell ready ***" print_fancy "Project: $SVT_SECRET_PROJECT" print_fancy "Secret: $SVT_SECRET_ENV_NAME" echo -echo "$secret_json" | json-env-helper -- bash +if [ $# -eq 0 ]; then + echo "$secret_json" | json-env-helper -- bash +else + echo "$secret_json" | json-env-helper -- "$@" +fi echo -ne "\033]0;\007" # Clear window title, letting the terminal revert to default print_fancy "*** Dev shell exited ***" From 3920ded4746dd69aed27f7878cc723d518a18770 Mon Sep 17 00:00:00 2001 From: Daniel Jones Date: Thu, 23 Apr 2026 17:16:20 -0400 Subject: [PATCH 2/2] Preserve exit code from dev shell command --- dev-shell.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dev-shell.sh b/dev-shell.sh index 1451e7e..ee2454e 100755 --- a/dev-shell.sh +++ b/dev-shell.sh @@ -47,5 +47,7 @@ if [ $# -eq 0 ]; then else echo "$secret_json" | json-env-helper -- "$@" fi +cmd_exit=$? echo -ne "\033]0;\007" # Clear window title, letting the terminal revert to default print_fancy "*** Dev shell exited ***" +exit $cmd_exit