Skip to content

dbpatch --version returns exit code 1 instead of 0 #65

@ormico

Description

@ormico

Description

dbpatch --version prints the version correctly (e.g., dbpatch 2.1.2) but returns exit code 1 instead of 0.

Steps to Reproduce

dbpatch --version
echo $?  # prints 1

Expected Behavior

dbpatch --version should return exit code 0 on success.

Impact

Scripts using set -e or checking exit codes cannot reliably use dbpatch --version to verify installation. Workaround is to use which dbpatch instead.

Observed in dbpatch v2.1.2 running on Ubuntu 24.04 with .NET 8.0 (DOTNET_ROLL_FORWARD=LatestMajor).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions