Skip to content

Missing error handling in pattern.sh #522

@brianredbeard

Description

@brianredbeard

Description

The pattern.sh script lacks set -euo pipefail which means errors in commands won't cause the script to fail, potentially leading to partial or corrupted state.

Location

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

#!/bin/bash
# Current: no error handling

Expected Behavior

Add strict error handling at the top of the script.

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