From 80a1cfc86e04bd44f5d3785fd09b96b796458b31 Mon Sep 17 00:00:00 2001 From: Bob Smith Date: Thu, 12 Feb 2026 18:28:07 -0500 Subject: [PATCH] fix: remove local keyword used outside functions in entrypoint The docker-entrypoint script uses `local` at lines 86, 109, and 141, but these are at the top-level scope (not inside any function). With `set -euo pipefail` enabled, bash exits immediately with: local: can only be used in a function Replace with plain variable assignments since these variables don't need function-scoped locality. Fixes #65 --- build/docker-entrypoint | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/docker-entrypoint b/build/docker-entrypoint index 547dfed..f643d68 100644 --- a/build/docker-entrypoint +++ b/build/docker-entrypoint @@ -83,7 +83,7 @@ if [ -n "${CLAUDEBOX_PROJECT_NAME:-}" ]; then runuser -u DOCKERUSER -- touch "$VENV_FLAG" else # Someone else is fixing it, wait for completion - local wait_count=0 + wait_count=0 while [ ! -f "$VENV_FLAG" ] && [ $wait_count -lt 60 ]; do sleep 0.5 ((wait_count++)) || true @@ -106,7 +106,7 @@ if [ -n "${CLAUDEBOX_PROJECT_NAME:-}" ]; then runuser -u DOCKERUSER -- touch "$VENV_FLAG" else # Someone else is creating it, wait for completion flag - local wait_count=0 + wait_count=0 while [ ! -f "$VENV_FLAG" ] && [ $wait_count -lt 60 ]; do sleep 0.5 ((wait_count++)) || true @@ -138,7 +138,7 @@ if [ -n "${CLAUDEBOX_PROJECT_NAME:-}" ]; then if [ -f "$CONFIG_FILE" ] && grep -qE 'python|ml|datascience' "$CONFIG_FILE"; then if [ ! -f "$PYDEV_FLAG" ] && [ -f "$VENV_FLAG" ] && [ -d "$VENV_DIR" ]; then # Deploy Python dev tools based on profile - local python_packages="" + python_packages="" # Base Python profile packages if grep -q 'python' "$CONFIG_FILE"; then