From f7bdc87df310f880234bfb5a9f025771418f568e Mon Sep 17 00:00:00 2001 From: z-br Date: Sun, 22 Jun 2025 22:45:11 -0700 Subject: [PATCH] fix: properly escape credentials variable in bash script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The escaped_credentials variable was using single quotes which prevented proper shell expansion. Changed to double quotes to allow variable substitution while maintaining safety. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- server/utils/code_task_v2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/utils/code_task_v2.py b/server/utils/code_task_v2.py index 9cf4d98..f0f07d2 100644 --- a/server/utils/code_task_v2.py +++ b/server/utils/code_task_v2.py @@ -269,7 +269,7 @@ def _run_ai_code_task_v2_internal(task_id: int, user_id: str, github_token: str) mkdir -p ~/.claude # Write credentials content directly to file - if [ ! -z '{escaped_credentials}' ]; then + if [ ! -z "{escaped_credentials}" ]; then echo "📋 Writing credentials to ~/.claude/.credentials.json" cat << 'CREDENTIALS_EOF' > ~/.claude/.credentials.json {credentials_content}