From c8a5d87903ab10edd37b5f48adb2823db40c7716 Mon Sep 17 00:00:00 2001 From: Baptiste Augrain Date: Sat, 13 Apr 2024 03:26:00 +0200 Subject: [PATCH] ci(snap): make sure that version is set [skip ci] --- stores/snapcraft/check_version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stores/snapcraft/check_version.sh b/stores/snapcraft/check_version.sh index b01761c..c0f23f0 100755 --- a/stores/snapcraft/check_version.sh +++ b/stores/snapcraft/check_version.sh @@ -26,7 +26,7 @@ else SNAP_VERSION=$( snapcraft list-revisions "${SNAP_NAME}" | grep -F "stable*" | grep "${ARCHITECTURE}" | tr -s ' ' | cut -d ' ' -f 4 ) echo "Snap version: ${SNAP_VERSION}" - if [[ "${SNAP_VERSION}" != "${RELEASE_VERSION}" ]]; then + if [[ -n "${SNAP_VERSION}" && "${SNAP_VERSION}" != "${RELEASE_VERSION}" ]]; then export SHOULD_BUILD="yes" export SHOULD_DEPLOY_TO_STORE="yes"