mirror of
https://github.com/VSCodium/vscodium.git
synced 2024-11-22 05:42:34 +03:00
fix(snap): check correct channel [skip ci]
This commit is contained in:
parent
e3a0ba975b
commit
6cb2291016
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user