Update snapcraft.yaml

This commit is contained in:
Alan Pope 2020-05-16 10:01:53 +01:00 committed by GitHub
parent 8e0aff0573
commit 7ff6922209
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,7 @@ parts:
override-pull: |
snapcraftctl pull
last_committed_tag="$(git for-each-ref --sort=taggerdate --format '%(tag)' refs/tags | tail -n 1)"
last_released_tag="$(snap info minetest | awk '$1 == "beta:" { print $2 }')"
last_released_tag="$(snap info minetest | awk '$1 == "latest/beta:" { print $2 }')"
# If the latest tag from the upstream project has not been released to
# beta, build that tag instead of master.
if [ "${last_committed_tag}" != "${last_released_tag}" ]; then