Skip to content

heredocs are rendered with prefixed spaces causing the compiled CLI to fail #73

@abh1kg

Description

@abh1kg

Heredoc expressions such as the following in command files are rendered with two prefixed spaces for the end character. This causes issues with the heredoc and causes the command to fail. Example:

In command file:

ext_peer_config=$( cat <<EOF cidr: 10.${ip_segment}.0.0/16 id: ${peer_id} name: ${peer_name} EOF ) 

In the generated file (after running bashly generate):

 cat >"$peer_context_file" <<EOL cidr: 10.${ip_segment}.0.0/16 id: ${peer_id} name: ${peer_name} EOL # there are 2 spaces before this character 

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions