fix(snap): check correct channel [skip ci]

This commit is contained in:
Baptiste Augrain 2024-11-05 18:27:45 +01:00
parent e3a0ba975b
commit 6cb2291016

View File

@ -24,11 +24,11 @@ else
if [[ "${VSCODE_QUALITY}" == "stable" ]]; then
CHANNEL="${SNAPCRAFT_STORE_CHANNEL:-stable}"
sudo snap install --channel "${CHANNEL}" --classic snapcraft
sudo snap install --channel stable --classic snapcraft
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}" | grep -F "${CHANNEL}*" | grep "${ARCHITECTURE}" | tr -s ' ' | cut -d ' ' -f 4 )
echo "Snap version: ${SNAP_VERSION}"
if [[ -n "${SNAP_VERSION}" && "${SNAP_VERSION}" != "${RELEASE_VERSION}" ]]; then