浏览代码

build(stores/snapcraft): quote grep pattern so shell won't interpret it (#1108)

Frazer Smith 3 年之前
父节点
当前提交
add78d6829
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      stores/snapcraft/check_version.sh

+ 1 - 1
stores/snapcraft/check_version.sh

@@ -19,7 +19,7 @@ else
 
   echo "Architecture: ${ARCHITECTURE}"
 
-  SNAP_VERSION=$(snapcraft list-revisions codium | grep -F stable* | grep "${ARCHITECTURE}" | tr -s ' ' | cut -d ' ' -f 4)
+  SNAP_VERSION=$(snapcraft list-revisions codium | grep -F "stable*" | grep "${ARCHITECTURE}" | tr -s ' ' | cut -d ' ' -f 4)
   echo "Snap version: ${SNAP_VERSION}"
 
   wget --quiet https://api.github.com/repos/VSCodium/vscodium/releases -O gh_latest.json