Skip to content

Commit a3f2595

Browse files
z-brclaude
andauthored
fix: properly escape credentials variable in bash script (#24)
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 <[email protected]>
1 parent 2a71271 commit a3f2595

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/utils/code_task_v2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def _run_ai_code_task_v2_internal(task_id: int, user_id: str, github_token: str)
271271
mkdir -p ~/.claude
272272
273273
# Write credentials content directly to file
274-
if [ ! -z '{escaped_credentials}' ]; then
274+
if [ ! -z "{escaped_credentials}" ]; then
275275
echo "📋 Writing credentials to ~/.claude/.credentials.json"
276276
cat << 'CREDENTIALS_EOF' > ~/.claude/.credentials.json
277277
{credentials_content}

0 commit comments

Comments
 (0)