瀏覽代碼

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

Baptiste Augrain 7 月之前
父節點
當前提交
6cb2291016
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      stores/snapcraft/check_version.sh

+ 2 - 2
stores/snapcraft/check_version.sh

@@ -24,11 +24,11 @@ else
   if [[ "${VSCODE_QUALITY}" == "stable" ]]; then
   if [[ "${VSCODE_QUALITY}" == "stable" ]]; then
     CHANNEL="${SNAPCRAFT_STORE_CHANNEL:-stable}"
     CHANNEL="${SNAPCRAFT_STORE_CHANNEL:-stable}"
 
 
-    sudo snap install --channel "${CHANNEL}" --classic snapcraft
+    sudo snap install --channel stable --classic snapcraft
 
 
     echo "Architecture: ${ARCHITECTURE}"
     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}"
     echo "Snap version: ${SNAP_VERSION}"
 
 
     if [[ -n "${SNAP_VERSION}" && "${SNAP_VERSION}" != "${RELEASE_VERSION}" ]]; then
     if [[ -n "${SNAP_VERSION}" && "${SNAP_VERSION}" != "${RELEASE_VERSION}" ]]; then