From add78d6829e868d4be34e8ed26d1b03852aebaa0 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Tue, 7 Jun 2022 22:20:09 +0100 Subject: [PATCH] build(stores/snapcraft): quote grep pattern so shell won't interpret it (#1108) --- stores/snapcraft/check_version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stores/snapcraft/check_version.sh b/stores/snapcraft/check_version.sh index bb92c6b..7965fc7 100755 --- a/stores/snapcraft/check_version.sh +++ b/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