fix(snap): version is empty if no release (#1236)

This commit is contained in:
Baptiste Augrain 2022-09-05 10:16:08 +02:00 committed by GitHub
parent b07ec41f16
commit 315d25a735
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,7 @@ else
echo "Architecture: ${ARCHITECTURE}"
SNAP_VERSION=$(snapcraft list-revisions ${SNAP_NAME} | grep -F "stable*" | grep "${ARCHITECTURE}" | tr -s ' ' | cut -d ' ' -f 4)
SNAP_VERSION=$(snapcraft list-revisions ${SNAP_NAME} 2>&1 | grep -F "stable*" | grep "${ARCHITECTURE}" | tr -s ' ' | cut -d ' ' -f 4)
echo "Snap version: ${SNAP_VERSION}"
wget --quiet "https://api.github.com/repos/${REPOSITORY}/releases" -O gh_latest.json