Skip to content

Unquoted variables in pattern.sh cause word splitting #523

@brianredbeard

Description

@brianredbeard

Description

Multiple variables are used without quotes, which can cause word splitting and glob expansion issues if values contain spaces or special characters.

Location

https://github.com/validatedpatterns/multicloud-gitops/blob/main/pattern.sh

command -v $1 >/dev/null 2>&1  # Should be "$1"

Expected Behavior

Quote all variable expansions: "$1", "$@", etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions