Skip to content

upgrade.sh exits with error if Gitea is already the latest version #35309

@eric-j-ason

Description

@eric-j-ason

Description

If everything goes fine, and upgrade.sh concludes that the running version of Gitea already is the latest, it exits with status 1, as if there was an error. It would be as if apt upgrade exited with status 1 whenever all packages were already up to date.

[[ "$current" == "$giteaversion" ]] && echo "$current is already installed, stopping." && exit 1

I suggest exiting with status 0 in this situation.

Gitea Version

57b8441

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Downloading and running https://github.com/go-gitea/gitea/blob/main/contrib/upgrade.sh.

Database

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions