From ef8c736173e99598bf74c737d3818033fa84c3cb Mon Sep 17 00:00:00 2001 From: Chris Farhood Date: Sun, 3 May 2026 18:15:40 -0400 Subject: [PATCH] fix(agent-setup): source existing .env and update GH_CONFIG_DIR in place Preserves other variables already in $AGENT_HOME/.env when updating the GH_CONFIG_DIR export rather than overwriting the file. --- agent-setup/scripts/setup.sh | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/agent-setup/scripts/setup.sh b/agent-setup/scripts/setup.sh index 05eca78..b73a550 100755 --- a/agent-setup/scripts/setup.sh +++ b/agent-setup/scripts/setup.sh @@ -9,10 +9,24 @@ die() { echo "ERROR: $*" >&2; exit 1; } # so we mirror that structure under AGENT_HOME export GH_CONFIG_DIR="$AGENT_HOME/.github" -# Write to a session dotfile so child processes inherit the variables mkdir -p "$AGENT_HOME" -cat > "$AGENT_HOME/.env" <> "$_ENV_FILE" +fi echo "GH_CONFIG_DIR set to $GH_CONFIG_DIR"