Skip to content

Commit

Permalink
fix(snap): check correct channel [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
daiyam authored and darkyzhou committed Nov 7, 2024
1 parent 1474b25 commit 7042870
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stores/snapcraft/check_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7042870

Please sign in to comment.