Skip to content

Commit d7caa4e

Browse files
gabemonteroclaude
andcommitted
fix(boost): conditional export and bash best practices for load-secrets.sh
- Guard BOOST_LLAMA_STACK_URL export with [[ -n ]] check so an empty value does not override the localhost fallback in app-config.yaml - Use [[ instead of [ for conditional tests (shellcheck/sonarcloud) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 107143c commit d7caa4e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

workspaces/boost/scripts/load-secrets.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ _load_field() {
2121
echo " WARNING: failed to read $1 from secret ${NAMESPACE}/${SECRET_NAME}" >&2
2222
return 1
2323
}
24-
if [ -z "${val}" ]; then
24+
if [[ -z "${val}" ]]; then
2525
echo " WARNING: $1 is empty in secret ${NAMESPACE}/${SECRET_NAME}" >&2
2626
return 1
2727
fi
@@ -66,7 +66,9 @@ unset -f _discover_llama_stack_route
6666

6767
export KAGENTI_CLIENT_SECRET KAGENTI_CLIENT_ID KAGENTI_TOKEN_ENDPOINT
6868
export KAGENTI_BASE_URL KAGENTI_NAMESPACE BOOST_MODEL
69-
export BOOST_LLAMA_STACK_URL
69+
if [[ -n "$BOOST_LLAMA_STACK_URL" ]]; then
70+
export BOOST_LLAMA_STACK_URL
71+
fi
7072
export NODE_TLS_REJECT_UNAUTHORIZED=0
7173

7274
echo "Loaded: KAGENTI_BASE_URL=$KAGENTI_BASE_URL"

0 commit comments

Comments
 (0)