diff --git a/stores/snapcraft/check_version.sh b/stores/snapcraft/check_version.sh index 51be428..325b6a8 100755 --- a/stores/snapcraft/check_version.sh +++ b/stores/snapcraft/check_version.sh @@ -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