From 5de921c2bccb68222190fdaf1ee1b4aeb9e15bed Mon Sep 17 00:00:00 2001 From: ryanmac Date: Wed, 23 Jul 2025 15:25:31 -0500 Subject: [PATCH] Fix syntax error in conductor-init.sh heredoc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed "unexpected end of file" error at line 429 by: - Correcting f-string quote mismatch in Python print statement - Moving EOF delimiter to its own line (heredoc requirement) - Adding proper error handling with exit code check The heredoc delimiter must be alone on its line in bash. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- conductor-init.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/conductor-init.sh b/conductor-init.sh index cba74b3..ecdab50 100644 --- a/conductor-init.sh +++ b/conductor-init.sh @@ -306,8 +306,11 @@ combined_roles = list(set(current_roles + new_roles)) config['roles']['specialized'] = combined_roles with open('.conductor/config.yaml', 'w') as f: yaml.dump(config, f, default_flow_style=False) -print(f'✅ Roles added: {', '.join(new_roles)}') -EOF || echo -e "${YELLOW}⚠️ Could not update roles automatically.${NC}" +print(f'✅ Roles added: {", ".join(new_roles)}') +EOF + if [ $? -ne 0 ]; then + echo -e "${YELLOW}⚠️ Could not update roles automatically.${NC}" + fi else echo -e "${YELLOW}⚠️ No valid selections made.${NC}" fi