Skip to content

Conversation

@ryanmac
Copy link
Owner

@ryanmac ryanmac commented Jul 23, 2025

Summary

  • Fixed "unexpected end of file" syntax error at line 429 in conductor-init.sh
  • Corrected f-string quote mismatch in Python print statement
  • Moved heredoc EOF delimiter to its own line per bash requirements

Problem

The installer script was failing with:

/dev/fd/11: line 429: syntax error: unexpected end of file

This occurred after the role configuration step.

Solution

The issue was caused by two problems:

  1. A Python f-string had mismatched quotes: print(f'✅ Roles added: {', '.join(new_roles)}')
  2. The heredoc EOF delimiter was not on its own line (had || echo ... after it)

Fixed by:

  • Changing the f-string to use double quotes inside: {", ".join(new_roles)}
  • Moving EOF to its own line and using proper error handling with if [ $? -ne 0 ]

Test plan

  • Verified bash syntax passes: bash -n conductor-init.sh
  • Test the installer script end-to-end
  • Verify role addition functionality works correctly

🤖 Generated with Claude Code

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 <[email protected]>
@ryanmac ryanmac merged commit a912ad1 into main Jul 23, 2025
9 checks passed
@ryanmac ryanmac deleted the fix/conductor-init-syntax-error branch July 23, 2025 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants