Explorar o código

fix(snap): version is empty if no release (#1236)

Baptiste Augrain %!s(int64=2) %!d(string=hai) anos
pai
achega
315d25a735
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      stores/snapcraft/check_version.sh

+ 1 - 1
stores/snapcraft/check_version.sh

@@ -25,7 +25,7 @@ else
 
   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} 2>&1 | grep -F "stable*" | grep "${ARCHITECTURE}" | tr -s ' ' | cut -d ' ' -f 4)
   echo "Snap version: ${SNAP_VERSION}"
 
   wget --quiet "https://api.github.com/repos/${REPOSITORY}/releases" -O gh_latest.json