From 3295a88a3e3d016aa2a6ce706df334e73ce4895c Mon Sep 17 00:00:00 2001 From: Fam Zheng Date: Sun, 2 Mar 2025 09:33:32 +0000 Subject: [PATCH] Move and improve scripts/prod-shell --- {api/scripts => scripts}/prod-shell | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename {api/scripts => scripts}/prod-shell (65%) diff --git a/api/scripts/prod-shell b/scripts/prod-shell similarity index 65% rename from api/scripts/prod-shell rename to scripts/prod-shell index 188efb3..d71baae 100755 --- a/api/scripts/prod-shell +++ b/scripts/prod-shell @@ -1,3 +1,3 @@ #!/bin/bash -podname=$(kubectl --kubeconfig deploy/kubeconfig.themblem get po | head -n 1 | grep -Eo 'api-[^ ]*') -exec kubectl --kubeconfig deploy/kubeconfig.themblem exec -ti $podname bash +podname=$(kubectl --kubeconfig deploy/kubeconfig.themblem get po | grep -Eo 'api-[^ ]*' -m 1 ) +exec kubectl --kubeconfig deploy/kubeconfig.themblem exec -ti $podname -- bash -c "cd /emblem/api && bash"